diff options
Diffstat (limited to 'src/lib/libssl/dtls1.h')
| -rw-r--r-- | src/lib/libssl/dtls1.h | 64 |
1 files changed, 1 insertions, 63 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h index 812b90592d..c7b2d3af76 100644 --- a/src/lib/libssl/dtls1.h +++ b/src/lib/libssl/dtls1.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dtls1.h,v 1.20 2017/01/22 03:50:45 jsing Exp $ */ | 1 | /* $OpenBSD: dtls1.h,v 1.21 2017/01/22 07:16:39 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
| @@ -153,77 +153,15 @@ typedef struct hm_fragment_st { | |||
| 153 | struct dtls1_state_internal_st; | 153 | struct dtls1_state_internal_st; |
| 154 | 154 | ||
| 155 | typedef struct dtls1_state_st { | 155 | typedef struct dtls1_state_st { |
| 156 | unsigned int send_cookie; | ||
| 157 | unsigned char cookie[DTLS1_COOKIE_LENGTH]; | ||
| 158 | unsigned char rcvd_cookie[DTLS1_COOKIE_LENGTH]; | ||
| 159 | unsigned int cookie_len; | ||
| 160 | |||
| 161 | /* | ||
| 162 | * The current data and handshake epoch. This is initially | ||
| 163 | * undefined, and starts at zero once the initial handshake is | ||
| 164 | * completed | ||
| 165 | */ | ||
| 166 | unsigned short r_epoch; | ||
| 167 | unsigned short w_epoch; | ||
| 168 | |||
| 169 | /* records being received in the current epoch */ | ||
| 170 | DTLS1_BITMAP bitmap; | ||
| 171 | |||
| 172 | /* renegotiation starts a new set of sequence numbers */ | ||
| 173 | DTLS1_BITMAP next_bitmap; | ||
| 174 | |||
| 175 | /* handshake message numbers */ | ||
| 176 | unsigned short handshake_write_seq; | ||
| 177 | unsigned short next_handshake_write_seq; | ||
| 178 | |||
| 179 | unsigned short handshake_read_seq; | ||
| 180 | |||
| 181 | /* save last sequence number for retransmissions */ | ||
| 182 | unsigned char last_write_sequence[8]; | ||
| 183 | |||
| 184 | /* Received handshake records (processed and unprocessed) */ | ||
| 185 | record_pqueue unprocessed_rcds; | ||
| 186 | record_pqueue processed_rcds; | ||
| 187 | |||
| 188 | /* Buffered handshake messages */ | ||
| 189 | struct _pqueue *buffered_messages; | ||
| 190 | |||
| 191 | /* Buffered (sent) handshake records */ | 156 | /* Buffered (sent) handshake records */ |
| 192 | struct _pqueue *sent_messages; | 157 | struct _pqueue *sent_messages; |
| 193 | 158 | ||
| 194 | /* Buffered application records. | ||
| 195 | * Only for records between CCS and Finished | ||
| 196 | * to prevent either protocol violation or | ||
| 197 | * unnecessary message loss. | ||
| 198 | */ | ||
| 199 | record_pqueue buffered_app_data; | ||
| 200 | |||
| 201 | /* Is set when listening for new connections with dtls1_listen() */ | ||
| 202 | unsigned int listen; | ||
| 203 | |||
| 204 | unsigned int mtu; /* max DTLS packet size */ | ||
| 205 | |||
| 206 | struct hm_header_st w_msg_hdr; | ||
| 207 | struct hm_header_st r_msg_hdr; | ||
| 208 | |||
| 209 | struct dtls1_timeout_st timeout; | ||
| 210 | |||
| 211 | /* Indicates when the last handshake msg or heartbeat sent will timeout */ | 159 | /* Indicates when the last handshake msg or heartbeat sent will timeout */ |
| 212 | struct timeval next_timeout; | 160 | struct timeval next_timeout; |
| 213 | 161 | ||
| 214 | /* Timeout duration */ | 162 | /* Timeout duration */ |
| 215 | unsigned short timeout_duration; | 163 | unsigned short timeout_duration; |
| 216 | 164 | ||
| 217 | /* storage for Alert/Handshake protocol data received but not | ||
| 218 | * yet processed by ssl3_read_bytes: */ | ||
| 219 | unsigned char alert_fragment[DTLS1_AL_HEADER_LENGTH]; | ||
| 220 | unsigned int alert_fragment_len; | ||
| 221 | unsigned char handshake_fragment[DTLS1_HM_HEADER_LENGTH]; | ||
| 222 | unsigned int handshake_fragment_len; | ||
| 223 | |||
| 224 | unsigned int retransmitting; | ||
| 225 | unsigned int change_cipher_spec_ok; | ||
| 226 | |||
| 227 | struct dtls1_state_internal_st *internal; | 165 | struct dtls1_state_internal_st *internal; |
| 228 | } DTLS1_STATE; | 166 | } DTLS1_STATE; |
| 229 | 167 | ||
