Refactor cookie to prepare for external callbacks
Also adds flexibility to the verification process.
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index 0bb4505..90e2596 100644
--- a/include/polarssl/ssl.h
+++ b/include/polarssl/ssl.h
@@ -620,8 +620,10 @@
#endif /* POLARSSL_X509_CRT_PARSE_C */
#if defined(POLARSSL_SSL_PROTO_DTLS)
unsigned int msg_seq; /*!< DTLS handshake sequence number */
- unsigned char *verify_cookie; /*!< cookie from HelloVerifyRequest */
- unsigned char verify_cookie_len; /*!< cookie length */
+ unsigned char *verify_cookie; /*!< Cli: HelloVerifyRequest cookie
+ Srv: unused */
+ unsigned char verify_cookie_len; /*!< Cli: cookie length
+ Srv: flag for sending a cookie */
#endif
/*