comparison algo.h @ 1106:2052b53d3034

Turn Algo_Type's name attribute into const char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 22:37:08 +0200
parents deed0571cacc
children 56aba7dedbea
comparison
equal deleted inserted replaced
1105:c339657c9758 1106:2052b53d3034
33 #define DROPBEAR_MODE_CBC 1 33 #define DROPBEAR_MODE_CBC 1
34 #define DROPBEAR_MODE_CTR 2 34 #define DROPBEAR_MODE_CTR 2
35 35
36 struct Algo_Type { 36 struct Algo_Type {
37 37
38 const unsigned char *name; /* identifying name */ 38 const char *name; /* identifying name */
39 char val; /* a value for this cipher, or -1 for invalid */ 39 char val; /* a value for this cipher, or -1 for invalid */
40 const void *data; /* algorithm specific data */ 40 const void *data; /* algorithm specific data */
41 char usable; /* whether we can use this algorithm */ 41 char usable; /* whether we can use this algorithm */
42 const void *mode; /* the mode, currently only used for ciphers, 42 const void *mode; /* the mode, currently only used for ciphers,
43 points to a 'struct dropbear_cipher_mode' */ 43 points to a 'struct dropbear_cipher_mode' */