diff options
Diffstat (limited to 'src/lib/libssl/dtls1.h')
| -rw-r--r-- | src/lib/libssl/dtls1.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h index 2900d1d8ae..5008bf6081 100644 --- a/src/lib/libssl/dtls1.h +++ b/src/lib/libssl/dtls1.h | |||
| @@ -105,6 +105,11 @@ extern "C" { | |||
| 105 | #define DTLS1_AL_HEADER_LENGTH 2 | 105 | #define DTLS1_AL_HEADER_LENGTH 2 |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | #ifndef OPENSSL_NO_SSL_INTERN | ||
| 109 | |||
| 110 | #ifndef OPENSSL_NO_SCTP | ||
| 111 | #define DTLS1_SCTP_AUTH_LABEL "EXPORTER_DTLS_OVER_SCTP" | ||
| 112 | #endif | ||
| 108 | 113 | ||
| 109 | typedef struct dtls1_bitmap_st | 114 | typedef struct dtls1_bitmap_st |
| 110 | { | 115 | { |
| @@ -227,7 +232,7 @@ typedef struct dtls1_state_st | |||
| 227 | 232 | ||
| 228 | struct dtls1_timeout_st timeout; | 233 | struct dtls1_timeout_st timeout; |
| 229 | 234 | ||
| 230 | /* Indicates when the last handshake msg sent will timeout */ | 235 | /* Indicates when the last handshake msg or heartbeat sent will timeout */ |
| 231 | struct timeval next_timeout; | 236 | struct timeval next_timeout; |
| 232 | 237 | ||
| 233 | /* Timeout duration */ | 238 | /* Timeout duration */ |
| @@ -243,6 +248,13 @@ typedef struct dtls1_state_st | |||
| 243 | unsigned int retransmitting; | 248 | unsigned int retransmitting; |
| 244 | unsigned int change_cipher_spec_ok; | 249 | unsigned int change_cipher_spec_ok; |
| 245 | 250 | ||
| 251 | #ifndef OPENSSL_NO_SCTP | ||
| 252 | /* used when SSL_ST_XX_FLUSH is entered */ | ||
| 253 | int next_state; | ||
| 254 | |||
| 255 | int shutdown_received; | ||
| 256 | #endif | ||
| 257 | |||
| 246 | } DTLS1_STATE; | 258 | } DTLS1_STATE; |
| 247 | 259 | ||
| 248 | typedef struct dtls1_record_data_st | 260 | typedef struct dtls1_record_data_st |
| @@ -251,8 +263,12 @@ typedef struct dtls1_record_data_st | |||
| 251 | unsigned int packet_length; | 263 | unsigned int packet_length; |
| 252 | SSL3_BUFFER rbuf; | 264 | SSL3_BUFFER rbuf; |
| 253 | SSL3_RECORD rrec; | 265 | SSL3_RECORD rrec; |
| 266 | #ifndef OPENSSL_NO_SCTP | ||
| 267 | struct bio_dgram_sctp_rcvinfo recordinfo; | ||
| 268 | #endif | ||
| 254 | } DTLS1_RECORD_DATA; | 269 | } DTLS1_RECORD_DATA; |
| 255 | 270 | ||
| 271 | #endif | ||
| 256 | 272 | ||
| 257 | /* Timeout multipliers (timeout slice is defined in apps/timeouts.h */ | 273 | /* Timeout multipliers (timeout slice is defined in apps/timeouts.h */ |
| 258 | #define DTLS1_TMO_READ_COUNT 2 | 274 | #define DTLS1_TMO_READ_COUNT 2 |
