X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=e79902b8aef2719527d98274accbcaf8e5cd6538;hb=refs%2Fheads%2F1.0-gnutls;hp=dd9c7a12f1ace0858b1a24c28b91d3599fe8dd17;hpb=35399784b695c9ac692beba7be7930ee9f24412f;p=tinc diff --git a/src/node.h b/src/node.h index dd9c7a12..e79902b8 100644 --- a/src/node.h +++ b/src/node.h @@ -23,6 +23,8 @@ #ifndef __TINC_NODE_H__ #define __TINC_NODE_H__ +#include + #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 */