Refactor cookie to prepare for external callbacks

Also adds flexibility to the verification process.
This commit is contained in:
Manuel Pégourié-Gonnard 2014-07-23 11:09:27 +02:00 committed by Paul Bakker
parent 82202f0a9c
commit d7f9bc5091
2 changed files with 63 additions and 50 deletions

View file

@ -620,8 +620,10 @@ struct _ssl_handshake_params
#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
/*