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/ssl_locl.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/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 5748875092..50f527aad5 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.145 2017/01/21 04:18:18 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.146 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 | * |
@@ -372,6 +372,26 @@ __BEGIN_HIDDEN_DECLS | |||
372 | #define EXPLICIT_CHAR2_CURVE_TYPE 2 | 372 | #define EXPLICIT_CHAR2_CURVE_TYPE 2 |
373 | #define NAMED_CURVE_TYPE 3 | 373 | #define NAMED_CURVE_TYPE 3 |
374 | 374 | ||
375 | typedef struct ssl_session_internal_st { | ||
376 | |||
377 | } SSL_SESSION_INTERNAL; | ||
378 | |||
379 | typedef struct ssl_ctx_internal_st { | ||
380 | |||
381 | } SSL_CTX_INTERNAL; | ||
382 | |||
383 | typedef struct ssl_internal_st { | ||
384 | |||
385 | } SSL_INTERNAL; | ||
386 | |||
387 | typedef struct ssl3_state_internal_st { | ||
388 | |||
389 | } SSL3_STATE_INTERNAL; | ||
390 | |||
391 | typedef struct dtls1_state_internal_st { | ||
392 | |||
393 | } DTLS1_STATE_INTERNAL; | ||
394 | |||
375 | typedef struct cert_pkey_st { | 395 | typedef struct cert_pkey_st { |
376 | X509 *x509; | 396 | X509 *x509; |
377 | EVP_PKEY *privatekey; | 397 | EVP_PKEY *privatekey; |