projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported gnutls based branch.
[tinc]
/
src
/
node.h
diff --git
a/src/node.h
b/src/node.h
index
7ce17eb
..
e79902b
100644
(file)
--- a/
src/node.h
+++ b/
src/node.h
@@
-17,12
+17,14
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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.3
0 2003/12/20 19:47:52
guus Exp $
+ $Id: node.h,v 1.1.2.3
1 2003/12/22 11:04:16
guus Exp $
*/
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
*/
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
+#include <gcrypt.h>
+
#include "avl_tree.h"
#include "connection.h"
#include "event.h"
#include "avl_tree.h"
#include "connection.h"
#include "event.h"
@@
-48,13
+50,17
@@
typedef struct node_t {
node_status_t status;
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 */
int maclength; /* Length of MAC */
+ gcry_md_hd_t digest_ctx;
int compression; /* Compressionlevel, 0 = no compression */
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 */
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;
int mtuprobes; /* Number of probes */
event_t *mtuevent; /* Probe event */
} node_t;