diff options
author | jsing <> | 2017-01-22 03:50:45 +0000 |
---|---|---|
committer | jsing <> | 2017-01-22 03:50:45 +0000 |
commit | da11794e3abdcddc9079bb28bb8e44547030b01f (patch) | |
tree | 1305cf6ae8a5e82d3473b44db775f816b47c9554 /src/lib/libssl/ssl3.h | |
parent | bcd4033a22e1bf44686805b7d0fd9c2560c44eb4 (diff) | |
download | openbsd-da11794e3abdcddc9079bb28bb8e44547030b01f.tar.gz openbsd-da11794e3abdcddc9079bb28bb8e44547030b01f.tar.bz2 openbsd-da11794e3abdcddc9079bb28bb8e44547030b01f.zip |
Convert publically visible structs to translucent structs.
This change adds an internal opaque struct for each of the significant
publically visible structs. The opaque struct is then allocated and
attached to the publically visible struct when the appropriate *_new()
function is called, then cleared and freed as necessary.
This will allow for changes to be made to the internals of libssl, without
requiring a major bump each time the publically visible structs are
modified.
ok beck@
Diffstat (limited to 'src/lib/libssl/ssl3.h')
-rw-r--r-- | src/lib/libssl/ssl3.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index c52c0a780e..6344176105 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl3.h,v 1.43 2016/12/30 15:10:57 jsing Exp $ */ | 1 | /* $OpenBSD: ssl3.h,v 1.44 2017/01/22 03:50:45 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 | * |
@@ -359,6 +359,8 @@ typedef struct ssl3_buffer_st { | |||
359 | 359 | ||
360 | #ifndef OPENSSL_NO_SSL_INTERN | 360 | #ifndef OPENSSL_NO_SSL_INTERN |
361 | 361 | ||
362 | struct ssl3_state_internal_st; | ||
363 | |||
362 | typedef struct ssl3_state_st { | 364 | typedef struct ssl3_state_st { |
363 | long flags; | 365 | long flags; |
364 | int delay_buf_pop_ret; | 366 | int delay_buf_pop_ret; |
@@ -489,6 +491,8 @@ typedef struct ssl3_state_st { | |||
489 | */ | 491 | */ |
490 | unsigned char *alpn_selected; | 492 | unsigned char *alpn_selected; |
491 | unsigned int alpn_selected_len; | 493 | unsigned int alpn_selected_len; |
494 | |||
495 | struct ssl3_state_internal_st *internal; | ||
492 | } SSL3_STATE; | 496 | } SSL3_STATE; |
493 | 497 | ||
494 | #endif | 498 | #endif |