projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assign more suitable types and fix narrowing conversion warns.
[tinc]
/
src
/
gcrypt
/
cipher.h
diff --git
a/src/gcrypt/cipher.h
b/src/gcrypt/cipher.h
index
64cb42d
..
41450c4
100644
(file)
--- a/
src/gcrypt/cipher.h
+++ b/
src/gcrypt/cipher.h
@@
-20,6
+20,8
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "system.h"
+
#include <gcrypt.h>
#define CIPHER_MAX_BLOCK_SIZE 32
#include <gcrypt.h>
#define CIPHER_MAX_BLOCK_SIZE 32
@@
-28,7
+30,7
@@
typedef struct cipher {
gcry_cipher_hd_t handle;
typedef struct cipher {
gcry_cipher_hd_t handle;
-
char
*key;
+
uint8_t
*key;
int nid;
uint16_t keylen;
uint16_t blklen;
int nid;
uint16_t keylen;
uint16_t blklen;