diff src/fileio.c @ 6353:60659773c73b v7.4.509

updated for version 7.4.509 Problem: Users are not aware their encryption is weak. Solution: Give a warning when prompting for the key.
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Nov 2014 15:15:42 +0100
parents a0daa5feaccb
children 27a36d1013a6
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2958,6 +2958,7 @@ check_for_cryptkey(cryptkey, ptr, sizep,
 		 * 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;