0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3245: the crypt key may appear in a swap partition

Problem:    The crypt key may appear in a swap partition.
Solution:   When using xchaha20 use sodium_mlock(). (Christian Brabandt,
            closes #8657)
This commit is contained in:
Bram Moolenaar
2021-07-29 20:37:49 +02:00
parent 41114a2a27
commit 131530a54d
7 changed files with 25 additions and 13 deletions

View File

@@ -486,6 +486,10 @@ typedef unsigned int u8char_T; // int is 32 bits or more
# endif
#endif
#ifdef HAVE_SODIUM
# include <sodium.h>
#endif
// ================ end of the header file puzzle ===============
/*