1
0
forked from aniani/vim

patch 9.0.1669: Crash syncing swapfile in new buffer when using sodium crypt

Problem:    Crash syncing swapfile in new buffer when using sodium crypt.
            (James McCoy)
Solution:   Add checks for sodium encryption. (Christian Brabandt,
            closes #12591, closes #12585)
This commit is contained in:
Christian Brabandt
2023-06-27 18:57:10 +01:00
committed by Bram Moolenaar
parent 0256d76a33
commit 19e6c4fd2d
6 changed files with 72 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ void crypt_check_swapfile_curbuf(void);
void crypt_check_current_method(void);
char_u *crypt_get_key(int store, int twice);
void crypt_append_msg(buf_T *buf);
void crypt_sodium_lock_key(char_u *key);
int crypt_sodium_munlock(void *const addr, const size_t len);
void crypt_sodium_randombytes_buf(void *const buf, const size_t size);
int crypt_sodium_init(void);