diff options
| author | jsing <> | 2021-04-19 16:51:56 +0000 |
|---|---|---|
| committer | jsing <> | 2021-04-19 16:51:56 +0000 |
| commit | 5f8453eb1cc1187e9be3703984abca2c1cab72ce (patch) | |
| tree | 54d09c9ab81cd7a258895b2d77b510ba6d5fe4ff /src/lib/libssl/ssl_locl.h | |
| parent | 59034683bc1ef1e76b3a1f5f6942d3e50fed21d3 (diff) | |
| download | openbsd-5f8453eb1cc1187e9be3703984abca2c1cab72ce.tar.gz openbsd-5f8453eb1cc1187e9be3703984abca2c1cab72ce.tar.bz2 openbsd-5f8453eb1cc1187e9be3703984abca2c1cab72ce.zip | |
Move reuse_message, message_type, message_size and cert_verify into the
TLSv1.2 handshake struct.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 3339c57390..3b86f5874b 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_locl.h,v 1.333 2021/03/29 16:46:09 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.334 2021/04/19 16:51:56 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -420,9 +420,19 @@ typedef struct ssl_handshake_tls12_st { | |||
| 420 | /* Used when SSL_ST_FLUSH_DATA is entered. */ | 420 | /* Used when SSL_ST_FLUSH_DATA is entered. */ |
| 421 | int next_state; | 421 | int next_state; |
| 422 | 422 | ||
| 423 | /* Handshake message type and size. */ | ||
| 424 | int message_type; | ||
| 425 | unsigned long message_size; | ||
| 426 | |||
| 427 | /* Reuse current handshake message. */ | ||
| 428 | int reuse_message; | ||
| 429 | |||
| 423 | /* Record-layer key block for TLS 1.2 and earlier. */ | 430 | /* Record-layer key block for TLS 1.2 and earlier. */ |
| 424 | unsigned char *key_block; | 431 | unsigned char *key_block; |
| 425 | size_t key_block_len; | 432 | size_t key_block_len; |
| 433 | |||
| 434 | /* Transcript hash prior to sending certificate verify message. */ | ||
| 435 | uint8_t cert_verify[EVP_MAX_MD_SIZE]; | ||
| 426 | } SSL_HANDSHAKE_TLS12; | 436 | } SSL_HANDSHAKE_TLS12; |
| 427 | 437 | ||
| 428 | typedef struct ssl_handshake_tls13_st { | 438 | typedef struct ssl_handshake_tls13_st { |
| @@ -925,11 +935,6 @@ typedef struct ssl3_state_internal_st { | |||
| 925 | SSL_HANDSHAKE hs; | 935 | SSL_HANDSHAKE hs; |
| 926 | 936 | ||
| 927 | struct { | 937 | struct { |
| 928 | unsigned char cert_verify_md[EVP_MAX_MD_SIZE]; | ||
| 929 | |||
| 930 | unsigned long message_size; | ||
| 931 | int message_type; | ||
| 932 | |||
| 933 | DH *dh; | 938 | DH *dh; |
| 934 | 939 | ||
| 935 | EC_KEY *ecdh; /* holds short lived ECDH key */ | 940 | EC_KEY *ecdh; /* holds short lived ECDH key */ |
| @@ -937,8 +942,6 @@ typedef struct ssl3_state_internal_st { | |||
| 937 | 942 | ||
| 938 | uint8_t *x25519; | 943 | uint8_t *x25519; |
| 939 | 944 | ||
| 940 | int reuse_message; | ||
| 941 | |||
| 942 | /* used for certificate requests */ | 945 | /* used for certificate requests */ |
| 943 | int cert_req; | 946 | int cert_req; |
| 944 | int ctype_num; | 947 | int ctype_num; |
