comparison src/proto/misc2.pro @ 6122:18ac55444b37 v7.4.399

updated for version 7.4.399 Problem: Encryption implementation is messy. Blowfish encryption has a weakness. Solution: Refactor the encryption, store the state in an allocated struct instead of using a save/restore mechanism. Introduce the "blowfish2" method, which does not have the weakness and encrypts the whole undo file. (largely by David Leadbeater)
author Bram Moolenaar <bram@vim.org>
date Sun, 10 Aug 2014 13:38:34 +0200
parents 8e9db1f27a00
children e55929fca0cf
comparison
equal deleted inserted replaced
6121:913d16b4904c 6122:18ac55444b37
82 int vim_chdirfile __ARGS((char_u *fname)); 82 int vim_chdirfile __ARGS((char_u *fname));
83 int illegal_slash __ARGS((char *name)); 83 int illegal_slash __ARGS((char *name));
84 char_u *parse_shape_opt __ARGS((int what)); 84 char_u *parse_shape_opt __ARGS((int what));
85 int get_shape_idx __ARGS((int mouse)); 85 int get_shape_idx __ARGS((int mouse));
86 void update_mouseshape __ARGS((int shape_idx)); 86 void update_mouseshape __ARGS((int shape_idx));
87 int crypt_method_from_string __ARGS((char_u *s));
88 int get_crypt_method __ARGS((buf_T *buf));
89 void set_crypt_method __ARGS((buf_T *buf, int method));
90 void crypt_push_state __ARGS((void));
91 void crypt_pop_state __ARGS((void));
92 void crypt_encode __ARGS((char_u *from, size_t len, char_u *to));
93 void crypt_decode __ARGS((char_u *ptr, long len));
94 void crypt_init_keys __ARGS((char_u *passwd));
95 void free_crypt_key __ARGS((char_u *key));
96 char_u *get_crypt_key __ARGS((int store, int twice));
97 void *vim_findfile_init __ARGS((char_u *path, char_u *filename, char_u *stopdirs, int level, int free_visited, int find_what, void *search_ctx_arg, int tagfile, char_u *rel_fname)); 87 void *vim_findfile_init __ARGS((char_u *path, char_u *filename, char_u *stopdirs, int level, int free_visited, int find_what, void *search_ctx_arg, int tagfile, char_u *rel_fname));
98 char_u *vim_findfile_stopdir __ARGS((char_u *buf)); 88 char_u *vim_findfile_stopdir __ARGS((char_u *buf));
99 void vim_findfile_cleanup __ARGS((void *ctx)); 89 void vim_findfile_cleanup __ARGS((void *ctx));
100 char_u *vim_findfile __ARGS((void *search_ctx_arg)); 90 char_u *vim_findfile __ARGS((void *search_ctx_arg));
101 void vim_findfile_free_visited __ARGS((void *search_ctx_arg)); 91 void vim_findfile_free_visited __ARGS((void *search_ctx_arg));
114 int get4c __ARGS((FILE *fd)); 104 int get4c __ARGS((FILE *fd));
115 time_t get8ctime __ARGS((FILE *fd)); 105 time_t get8ctime __ARGS((FILE *fd));
116 char_u *read_string __ARGS((FILE *fd, int cnt)); 106 char_u *read_string __ARGS((FILE *fd, int cnt));
117 int put_bytes __ARGS((FILE *fd, long_u nr, int len)); 107 int put_bytes __ARGS((FILE *fd, long_u nr, int len));
118 void put_time __ARGS((FILE *fd, time_t the_time)); 108 void put_time __ARGS((FILE *fd, time_t the_time));
109 void time_to_bytes __ARGS((time_t the_time, char_u *buf));
119 int has_non_ascii __ARGS((char_u *s)); 110 int has_non_ascii __ARGS((char_u *s));
120 /* vim: set ft=c : */ 111 /* vim: set ft=c : */