X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_locl.h;h=64d5e720e1ec991d91dbb9a770aa5ae22101ac7b;hp=7caec67d2434d8f27842149bf1d328c38d3a0deb;hb=a9c0d8beeae98355a2ef6ae1f0a9ba624be8bd54;hpb=add8d0e9e0bb80728f4b89d15573bf2e70596ceb diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 7caec67d24..64d5e720e1 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -11,16 +11,13 @@ #ifndef HEADER_SSL_LOCL_H # define HEADER_SSL_LOCL_H -# include "e_os.h" /* struct timeval for Windows */ + +# include "e_os.h" /* struct timeval for DTLS */ # include # include # include # include -# if defined(__unix) || defined(__unix__) -# include /* struct timeval for DTLS */ -# endif - # include # include # include @@ -880,9 +877,9 @@ struct ssl_ctx_st { ENGINE *client_cert_engine; # endif - /* Early callback. Mostly for extensions, but not entirely. */ - SSL_early_cb_fn early_cb; - void *early_cb_arg; + /* ClientHello callback. Mostly for extensions, but not entirely. */ + SSL_client_hello_cb_fn client_hello_cb; + void *client_hello_cb_arg; /* TLS extensions. */ struct { @@ -1255,7 +1252,10 @@ struct ssl_st { size_t tls13_cookie_len; } ext; - /* Parsed form of the ClientHello, kept around across early_cb calls. */ + /* + * Parsed form of the ClientHello, kept around across client_hello_cb + * calls. + */ CLIENTHELLO_MSG *clienthello; /*- @@ -1627,11 +1627,15 @@ typedef struct dtls1_state_st { */ struct timeval next_timeout; /* Timeout duration */ - unsigned short timeout_duration; + unsigned int timeout_duration_us; + unsigned int retransmitting; # ifndef OPENSSL_NO_SCTP int shutdown_received; # endif + + DTLS_timer_cb timer_cb; + } DTLS1_STATE; # ifndef OPENSSL_NO_EC