From da11794e3abdcddc9079bb28bb8e44547030b01f Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 22 Jan 2017 03:50:45 +0000 Subject: 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@ --- src/lib/libssl/ssl_locl.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl_locl.h') 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 @@ -/* $OpenBSD: ssl_locl.h,v 1.145 2017/01/21 04:18:18 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.146 2017/01/22 03:50:45 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -372,6 +372,26 @@ __BEGIN_HIDDEN_DECLS #define EXPLICIT_CHAR2_CURVE_TYPE 2 #define NAMED_CURVE_TYPE 3 +typedef struct ssl_session_internal_st { + +} SSL_SESSION_INTERNAL; + +typedef struct ssl_ctx_internal_st { + +} SSL_CTX_INTERNAL; + +typedef struct ssl_internal_st { + +} SSL_INTERNAL; + +typedef struct ssl3_state_internal_st { + +} SSL3_STATE_INTERNAL; + +typedef struct dtls1_state_internal_st { + +} DTLS1_STATE_INTERNAL; + typedef struct cert_pkey_st { X509 *x509; EVP_PKEY *privatekey; -- cgit v1.2.3-55-g6feb