summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2018-10-24 18:04:50 +0000
committerjsing <>2018-10-24 18:04:50 +0000
commitd7e0aa4b59fc46f038370bf8dc64821eb4a7d804 (patch)
treece8dad95e6021ab405b0ec175b26682e47bea424 /src/lib/libssl/ssl_locl.h
parentc988048231bcb1d2abd6613e83760d63c461a080 (diff)
downloadopenbsd-d7e0aa4b59fc46f038370bf8dc64821eb4a7d804.tar.gz
openbsd-d7e0aa4b59fc46f038370bf8dc64821eb4a7d804.tar.bz2
openbsd-d7e0aa4b59fc46f038370bf8dc64821eb4a7d804.zip
Make more of libssl's record layer state internal.
In January 2017, we changed large amounts of libssl's data structures to be non-visible/internal, however intentionally left things that the software ecosystem was needing to use. The four or so applications that reached into libssl for record layer related state now implement alternative code. As such, make these data structures internal. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index d022d21568..9a018547ab 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.215 2018/09/08 14:29:52 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.216 2018/10/24 18:04:50 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 *
@@ -748,6 +748,14 @@ typedef struct ssl3_state_internal_st {
748 int write_mac_secret_size; 748 int write_mac_secret_size;
749 unsigned char write_mac_secret[EVP_MAX_MD_SIZE]; 749 unsigned char write_mac_secret[EVP_MAX_MD_SIZE];
750 750
751 SSL3_BUFFER rbuf; /* read IO goes into here */
752 SSL3_BUFFER wbuf; /* write IO goes into here */
753
754 /* we allow one fatal and one warning alert to be outstanding,
755 * send close alert via the warning alert */
756 int alert_dispatch;
757 unsigned char send_alert[2];
758
751 /* flags for countermeasure against known-IV weakness */ 759 /* flags for countermeasure against known-IV weakness */
752 int need_empty_fragments; 760 int need_empty_fragments;
753 int empty_fragment_done; 761 int empty_fragment_done;
@@ -793,6 +801,8 @@ typedef struct ssl3_state_internal_st {
793 SSL_HANDSHAKE hs; 801 SSL_HANDSHAKE hs;
794 802
795 struct { 803 struct {
804 int new_mac_secret_size;
805
796 /* actually only needs to be 16+20 */ 806 /* actually only needs to be 16+20 */
797 unsigned char cert_verify_md[EVP_MAX_MD_SIZE*2]; 807 unsigned char cert_verify_md[EVP_MAX_MD_SIZE*2];
798 808