Refactor cookie to prepare for external callbacks
Also adds flexibility to the verification process.
This commit is contained in:
parent
82202f0a9c
commit
d7f9bc5091
2 changed files with 63 additions and 50 deletions
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue