summaryrefslogtreecommitdiff
path: root/src/lib/libssl/dtls1.h
diff options
context:
space:
mode:
authorjsing <>2017-01-22 03:50:45 +0000
committerjsing <>2017-01-22 03:50:45 +0000
commitda11794e3abdcddc9079bb28bb8e44547030b01f (patch)
tree1305cf6ae8a5e82d3473b44db775f816b47c9554 /src/lib/libssl/dtls1.h
parentbcd4033a22e1bf44686805b7d0fd9c2560c44eb4 (diff)
downloadopenbsd-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/dtls1.h')
-rw-r--r--src/lib/libssl/dtls1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h
index 8ec0bb8421..812b90592d 100644
--- a/src/lib/libssl/dtls1.h
+++ b/src/lib/libssl/dtls1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dtls1.h,v 1.19 2016/12/30 15:10:57 jsing Exp $ */ 1/* $OpenBSD: dtls1.h,v 1.20 2017/01/22 03:50:45 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -150,6 +150,8 @@ typedef struct hm_fragment_st {
150 unsigned char *reassembly; 150 unsigned char *reassembly;
151} hm_fragment; 151} hm_fragment;
152 152
153struct dtls1_state_internal_st;
154
153typedef struct dtls1_state_st { 155typedef struct dtls1_state_st {
154 unsigned int send_cookie; 156 unsigned int send_cookie;
155 unsigned char cookie[DTLS1_COOKIE_LENGTH]; 157 unsigned char cookie[DTLS1_COOKIE_LENGTH];
@@ -222,7 +224,7 @@ typedef struct dtls1_state_st {
222 unsigned int retransmitting; 224 unsigned int retransmitting;
223 unsigned int change_cipher_spec_ok; 225 unsigned int change_cipher_spec_ok;
224 226
225 227 struct dtls1_state_internal_st *internal;
226} DTLS1_STATE; 228} DTLS1_STATE;
227 229
228typedef struct dtls1_record_data_st { 230typedef struct dtls1_record_data_st {