1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When using encryption it's not clear what method was used.
12 Solution: In the file message show "blowfish" when using blowfish.
16 *** ../vim-7.3.132/src/fileio.c 2011-02-15 17:39:14.000000000 +0100
17 --- src/fileio.c 2011-02-25 16:30:19.000000000 +0100
22 char_u *cryptkey = NULL;
23 int did_ask_for_key = FALSE;
24 + int crypt_method_used;
26 #ifdef FEAT_PERSISTENT_UNDO
27 context_sha256_T sha_ctx;
31 save_file_ff(curbuf); /* remember the current file format */
34 + crypt_method_used = use_crypt_method;
43 ! STRCAT(IObuff, _("[crypted]"));
51 ! if (crypt_method_used == 1)
52 ! STRCAT(IObuff, _("[blowfish]"));
54 ! STRCAT(IObuff, _("[crypted]"));
61 int write_undo_file = FALSE;
62 context_sha256_T sha_ctx;
65 + int crypt_method_used;
68 if (fname == NULL || *fname == NUL) /* safety check */
73 mch_set_acl(wfname, acl);
76 + crypt_method_used = use_crypt_method;
77 if (wb_flags & FIO_ENCRYPTED)
83 if (wb_flags & FIO_ENCRYPTED)
85 ! STRCAT(IObuff, _("[crypted]"));
91 if (wb_flags & FIO_ENCRYPTED)
93 ! if (crypt_method_used == 1)
94 ! STRCAT(IObuff, _("[blowfish]"));
96 ! STRCAT(IObuff, _("[crypted]"));
100 *** ../vim-7.3.132/src/version.c 2011-02-25 15:18:46.000000000 +0100
101 --- src/version.c 2011-02-25 16:42:58.000000000 +0100
105 { /* Add new patch number below this line */
112 GUARD #1: Halt! Who goes there?
113 ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of
114 Camelot. King of the Britons, defeator of the Saxons, sovereign of
116 GUARD #1: Pull the other one!
117 The Quest for the Holy Grail (Monty Python)
119 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
120 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
121 \\\ an exciting new programming language -- http://www.Zimbu.org ///
122 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///