comparison src/memline.c @ 27231:e1cedf009920 v8.2.4144

patch 8.2.4144: cannot load libsodium dynamically Commit: https://github.com/vim/vim/commit/1a8825d7a3484d76ca16ea2aa9769cadca7758a4 Author: K.Takata <kentkt@csc.jp> Date: Wed Jan 19 13:32:57 2022 +0000 patch 8.2.4144: cannot load libsodium dynamically Problem: Cannot load libsodium dynamically. Solution: Support dynamic loading on MS-Windows. (Ken Takata, closes https://github.com/vim/vim/issues/9554)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Jan 2022 14:45:05 +0100
parents 85866e069c24
children 41e0dcf38521
comparison
equal deleted inserted replaced
27230:c405d50702b1 27231:e1cedf009920
434 // Generate a seed and store it in the memfile. 434 // Generate a seed and store it in the memfile.
435 sha2_seed(buf->b_ml.ml_mfp->mf_seed, MF_SEED_LEN, NULL, 0); 435 sha2_seed(buf->b_ml.ml_mfp->mf_seed, MF_SEED_LEN, NULL, 0);
436 } 436 }
437 #ifdef FEAT_SODIUM 437 #ifdef FEAT_SODIUM
438 else if (method_nr == CRYPT_M_SOD) 438 else if (method_nr == CRYPT_M_SOD)
439 randombytes_buf(buf->b_ml.ml_mfp->mf_seed, MF_SEED_LEN); 439 crypt_sodium_randombytes_buf(buf->b_ml.ml_mfp->mf_seed,
440 MF_SEED_LEN);
440 #endif 441 #endif
441 } 442 }
442 } 443 }
443 444
444 /* 445 /*