Minor type improvements in legacy protocol code
[tinc] / src / gcrypt / cipher.h
index 2067db6..5f93a38 100644 (file)
 
 #include <gcrypt.h>
 
-struct cipher {
+#include "../legacy.h"
+
+typedef struct cipher {
        gcry_cipher_hd_t handle;
        uint8_t *key;
-       int nid;
+       nid_t nid;
        uint16_t keylen;
        uint16_t blklen;
        bool padding;
-};
+} cipher_t;
 
 #endif