From 131530a54d0f72b820b027606231744e3a09b9ef Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 29 Jul 2021 20:37:49 +0200 Subject: 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) --- src/vim.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vim.h') diff --git a/src/vim.h b/src/vim.h index e45a1de2e..30cf28428 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 +#endif + // ================ end of the header file puzzle =============== /* -- cgit v1.2.1