commit | 3a0c90898338c04bde314bede9f116f299eaddef | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Nov 12 15:15:42 2014 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Nov 12 15:15:42 2014 +0100 |
tree | 52c90925ed68b802fd1e0a4e943876a53532acf0 | |
parent | 983c4e93dc560b00c5c7b752a3a7c1c452359c38 [diff] [blame] |
updated for version 7.4.509 Problem: Users are not aware their encryption is weak. Solution: Give a warning when prompting for the key.
diff --git a/src/fileio.c b/src/fileio.c index 0843d04..a978ec2 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -2958,6 +2958,7 @@ * Happens when retrying to detect encoding. */ smsg((char_u *)_(need_key_msg), fname); msg_scroll = TRUE; + crypt_check_method(method); cryptkey = crypt_get_key(newfile, FALSE); *did_ask = TRUE;