Mercurial > vim
comparison src/crypt.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | 85866e069c24 |
children | e1cedf009920 |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
245 + cryptmethods[method_nr].salt_len | 245 + cryptmethods[method_nr].salt_len |
246 + cryptmethods[method_nr].seed_len; | 246 + cryptmethods[method_nr].seed_len; |
247 } | 247 } |
248 | 248 |
249 | 249 |
250 #if defined(FEAT_SODIUM) || defined(PROTO) | |
250 /* | 251 /* |
251 * Get maximum crypt method specific length of the file header in bytes. | 252 * Get maximum crypt method specific length of the file header in bytes. |
252 */ | 253 */ |
253 int | 254 int |
254 crypt_get_max_header_len() | 255 crypt_get_max_header_len() |
263 if (temp > max) | 264 if (temp > max) |
264 max = temp; | 265 max = temp; |
265 } | 266 } |
266 return max; | 267 return max; |
267 } | 268 } |
269 #endif | |
268 | 270 |
269 /* | 271 /* |
270 * Set the crypt method for buffer "buf" to "method_nr" using the int value as | 272 * Set the crypt method for buffer "buf" to "method_nr" using the int value as |
271 * returned by crypt_method_nr_from_name(). | 273 * returned by crypt_method_nr_from_name(). |
272 */ | 274 */ |