Imported gnutls based branch.
[tinc] / src / node.h
index 7ce17eb..e79902b 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: node.h,v 1.1.2.30 2003/12/20 19:47:52 guus Exp $
+    $Id: node.h,v 1.1.2.31 2003/12/22 11:04:16 guus Exp $
 */
 
 #ifndef __TINC_NODE_H__
 #define __TINC_NODE_H__
 
+#include <gcrypt.h>
+
 #include "avl_tree.h"
 #include "connection.h"
 #include "event.h"
@@ -48,13 +50,17 @@ typedef struct node_t {
 
        node_status_t status;
 
-       const EVP_CIPHER *cipher;               /* Cipher type for UDP packets */
-       char *key;                              /* Cipher key and iv */
-       int keylength;                          /* Cipher key and iv length */
-       EVP_CIPHER_CTX packet_ctx;              /* Cipher context */
+       int cipher;                             /* Cipher type for UDP packets */
+       char *cipherkey;                        /* Cipher key */
+       int cipherkeylen;                       /* Cipher key length */
+       int cipherblklen;
+       gcry_cipher_hd_t cipher_ctx;            /* Cipher context */
        
-       const EVP_MD *digest;                   /* Digest type for MAC */
+       int digest;                             /* Digest type for MAC */
+       char *digestkey;
+       int digestlen;
        int maclength;                          /* Length of MAC */
+       gcry_md_hd_t digest_ctx;
 
        int compression;                        /* Compressionlevel, 0 = no compression */
 
@@ -74,7 +80,8 @@ typedef struct node_t {
        unsigned char late[16];                 /* Bitfield marking late packets */
 
        length_t mtu;                           /* Maximum size of packets to send to this node */
-       length_t probedmtu;                     /* Probed MTU */
+       length_t minmtu;                        /* Probed minimum MTU */
+       length_t maxmtu;                        /* Probed maximum MTU */
        int mtuprobes;                          /* Number of probes */
        event_t *mtuevent;                      /* Probe event */
 } node_t;