0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.4144: cannot load libsodium dynamically

Problem:    Cannot load libsodium dynamically.
Solution:   Support dynamic loading on MS-Windows. (Ken Takata, closes #9554)
This commit is contained in:
K.Takata
2022-01-19 13:32:57 +00:00
committed by Bram Moolenaar
parent b0b2b73dca
commit 1a8825d7a3
7 changed files with 144 additions and 7 deletions

View File

@@ -436,7 +436,8 @@ ml_set_mfp_crypt(buf_T *buf)
}
#ifdef FEAT_SODIUM
else if (method_nr == CRYPT_M_SOD)
randombytes_buf(buf->b_ml.ml_mfp->mf_seed, MF_SEED_LEN);
crypt_sodium_randombytes_buf(buf->b_ml.ml_mfp->mf_seed,
MF_SEED_LEN);
#endif
}
}