diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-22 03:50:46 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-22 03:50:46 +0000 |
commit | e84887d015d85d5e65c35bc64689d64835e8003d (patch) | |
tree | 0ecf9e1fd74dab3da6275e49a6494da2b5a0e5e5 /lib/libssl/dtls1.h | |
parent | 350f10a2dd69c7fcdb6abf91512a85ca0ee99ae3 (diff) |
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 'lib/libssl/dtls1.h')
-rw-r--r-- | lib/libssl/dtls1.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libssl/dtls1.h b/lib/libssl/dtls1.h index 8ec0bb84212..812b90592d3 100644 --- a/lib/libssl/dtls1.h +++ b/lib/libssl/dtls1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dtls1.h,v 1.19 2016/12/30 15:10:57 jsing Exp $ */ +/* $OpenBSD: dtls1.h,v 1.20 2017/01/22 03:50:45 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -150,6 +150,8 @@ typedef struct hm_fragment_st { unsigned char *reassembly; } hm_fragment; +struct dtls1_state_internal_st; + typedef struct dtls1_state_st { unsigned int send_cookie; unsigned char cookie[DTLS1_COOKIE_LENGTH]; @@ -222,7 +224,7 @@ typedef struct dtls1_state_st { unsigned int retransmitting; unsigned int change_cipher_spec_ok; - + struct dtls1_state_internal_st *internal; } DTLS1_STATE; typedef struct dtls1_record_data_st { |