summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-29 20:37:49 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-29 20:37:49 +0200
commit131530a54d0f72b820b027606231744e3a09b9ef (patch)
treed288b74f18adb46ab6917e506dc78616fd0463c7 /src/vim.h
parent41114a2a27047bf1884e092b98c6298c128eb2f0 (diff)
patch 8.2.3245: the crypt key may appear in a swap partitionv8.2.3245
Problem: The crypt key may appear in a swap partition. Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt, closes #8657)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index e45a1de2e0..30cf284284 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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 ===============
/*