]> git.meshlink.io Git - meshlink/blobdiff - src/connection.h
Use SPTPS when ExperimentalProtocol is enabled.
[meshlink] / src / connection.h
index 20e00763c0a1d9881b15509b34061b0327b0bce0..2d84aced1cdee1119a549dbc222800c7625b2d17 100644 (file)
@@ -26,6 +26,7 @@
 #include "digest.h"
 #include "rsa.h"
 #include "splay_tree.h"
+#include "sptps.h"
 
 #define OPTION_INDIRECT                0x0001
 #define OPTION_TCPONLY         0x0002
@@ -73,11 +74,11 @@ typedef struct connection_t {
 
        rsa_t rsa;                      /* his public RSA key */
        ecdsa_t ecdsa;                  /* his public ECDSA key */
-       ecdsa_t ecdh;                   /* state for ECDH key exchange */
        cipher_t incipher;              /* Cipher he will use to send data to us */
        cipher_t outcipher;             /* Cipher we will use to send data to him */
        digest_t indigest;
        digest_t outdigest;
+       sptps_t sptps;
 
        int inmaclength;
        int outmaclength;