summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index b52b03149a..410fc04688 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.179 2017/05/06 20:37:25 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.180 2017/05/06 22:24:58 beck 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 *
@@ -431,6 +431,18 @@ typedef struct ssl_session_internal_st {
431} SSL_SESSION_INTERNAL; 431} SSL_SESSION_INTERNAL;
432#define SSI(s) (s->session->internal) 432#define SSI(s) (s->session->internal)
433 433
434typedef struct ssl_handshake_st {
435 /* used when SSL_ST_FLUSH_DATA is entered */
436 int next_state;
437
438 /* new_cipher is the cipher being negotiated in this handshake. */
439 const SSL_CIPHER *new_cipher;
440
441 /* key_block is the record-layer key block for TLS 1.2 and earlier. */
442 int key_block_len;
443 unsigned char *key_block;
444} SSL_HANDSHAKE;
445
434typedef struct ssl_ctx_internal_st { 446typedef struct ssl_ctx_internal_st {
435 uint16_t min_version; 447 uint16_t min_version;
436 uint16_t max_version; 448 uint16_t max_version;
@@ -824,6 +836,8 @@ typedef struct ssl3_state_internal_st {
824 836
825 int in_read_app_data; 837 int in_read_app_data;
826 838
839 SSL_HANDSHAKE hs;
840
827 struct { 841 struct {
828 /* actually only needs to be 16+20 */ 842 /* actually only needs to be 16+20 */
829 unsigned char cert_verify_md[EVP_MAX_MD_SIZE*2]; 843 unsigned char cert_verify_md[EVP_MAX_MD_SIZE*2];
@@ -837,17 +851,12 @@ typedef struct ssl3_state_internal_st {
837 unsigned long message_size; 851 unsigned long message_size;
838 int message_type; 852 int message_type;
839 853
840 /* used to hold the new cipher we are going to use */
841 const SSL_CIPHER *new_cipher;
842 DH *dh; 854 DH *dh;
843 855
844 EC_KEY *ecdh; /* holds short lived ECDH key */ 856 EC_KEY *ecdh; /* holds short lived ECDH key */
845 857
846 uint8_t *x25519; 858 uint8_t *x25519;
847 859
848 /* used when SSL_ST_FLUSH_DATA is entered */
849 int next_state;
850
851 int reuse_message; 860 int reuse_message;
852 861
853 /* used for certificate requests */ 862 /* used for certificate requests */
@@ -856,9 +865,6 @@ typedef struct ssl3_state_internal_st {
856 char ctype[SSL3_CT_NUMBER]; 865 char ctype[SSL3_CT_NUMBER];
857 STACK_OF(X509_NAME) *ca_names; 866 STACK_OF(X509_NAME) *ca_names;
858 867
859 int key_block_length;
860 unsigned char *key_block;
861
862 const EVP_CIPHER *new_sym_enc; 868 const EVP_CIPHER *new_sym_enc;
863 const EVP_AEAD *new_aead; 869 const EVP_AEAD *new_aead;
864 const EVP_MD *new_hash; 870 const EVP_MD *new_hash;