diff options
author | tb <> | 2021-05-10 17:10:57 +0000 |
---|---|---|
committer | tb <> | 2021-05-10 17:10:57 +0000 |
commit | 4651d77c7eafc2103c2b832ad158072d5ce19fc8 (patch) | |
tree | 1ea7896f0f87d38a820079d06d226cbd49f963ec | |
parent | 3d0962833b8b2a0ee1570c9e917bc69b45790819 (diff) | |
download | openbsd-4651d77c7eafc2103c2b832ad158072d5ce19fc8.tar.gz openbsd-4651d77c7eafc2103c2b832ad158072d5ce19fc8.tar.bz2 openbsd-4651d77c7eafc2103c2b832ad158072d5ce19fc8.zip |
Make SSL_CIPHER, SSL_CTX, SSL_SESSION, {DTLS1,SSL3}_STATE
and a few other structs in libssl opaque.
from/ok jsing
-rw-r--r-- | src/lib/libssl/dtls1.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/ssl.h | 6 | ||||
-rw-r--r-- | src/lib/libssl/ssl3.h | 4 |
3 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h index fe8c5864dd..624df2479b 100644 --- a/src/lib/libssl/dtls1.h +++ b/src/lib/libssl/dtls1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dtls1.h,v 1.25 2021/03/31 16:59:32 tb Exp $ */ | 1 | /* $OpenBSD: dtls1.h,v 1.26 2021/05/10 17:10:57 tb 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. |
@@ -91,8 +91,7 @@ extern "C" { | |||
91 | 91 | ||
92 | #define DTLS1_AL_HEADER_LENGTH 2 | 92 | #define DTLS1_AL_HEADER_LENGTH 2 |
93 | 93 | ||
94 | #ifndef OPENSSL_NO_SSL_INTERN | 94 | #ifdef LIBRESSL_INTERNAL |
95 | |||
96 | 95 | ||
97 | typedef struct dtls1_bitmap_st { | 96 | typedef struct dtls1_bitmap_st { |
98 | unsigned long map; /* track 32 packets on 32-bit systems | 97 | unsigned long map; /* track 32 packets on 32-bit systems |
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 987d06ee04..571143040c 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.189 2021/05/10 17:07:23 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.190 2021/05/10 17:10:57 tb 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 | * |
@@ -377,7 +377,7 @@ typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, | |||
377 | typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, | 377 | typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, |
378 | STACK_OF(SSL_CIPHER) *peer_ciphers, SSL_CIPHER **cipher, void *arg); | 378 | STACK_OF(SSL_CIPHER) *peer_ciphers, SSL_CIPHER **cipher, void *arg); |
379 | 379 | ||
380 | #ifndef OPENSSL_NO_SSL_INTERN | 380 | #ifdef LIBRESSL_INTERNAL |
381 | 381 | ||
382 | /* used to hold info on the particular ciphers used */ | 382 | /* used to hold info on the particular ciphers used */ |
383 | struct ssl_cipher_st { | 383 | struct ssl_cipher_st { |
@@ -639,7 +639,7 @@ typedef int (*GEN_SESSION_CB)(const SSL *ssl, unsigned char *id, | |||
639 | 639 | ||
640 | typedef struct ssl_comp_st SSL_COMP; | 640 | typedef struct ssl_comp_st SSL_COMP; |
641 | 641 | ||
642 | #ifndef OPENSSL_NO_SSL_INTERN | 642 | #ifdef LIBRESSL_INTERNAL |
643 | 643 | ||
644 | struct ssl_comp_st { | 644 | struct ssl_comp_st { |
645 | int id; | 645 | int id; |
diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index fc40c20d6c..631f8dee23 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl3.h,v 1.52 2021/05/02 18:10:32 tb Exp $ */ | 1 | /* $OpenBSD: ssl3.h,v 1.53 2021/05/10 17:10:57 tb 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 | * |
@@ -355,7 +355,7 @@ typedef struct ssl3_buffer_st { | |||
355 | #define TLS1_FLAGS_FREEZE_TRANSCRIPT 0x0020 | 355 | #define TLS1_FLAGS_FREEZE_TRANSCRIPT 0x0020 |
356 | #define SSL3_FLAGS_CCS_OK 0x0080 | 356 | #define SSL3_FLAGS_CCS_OK 0x0080 |
357 | 357 | ||
358 | #ifndef OPENSSL_NO_SSL_INTERN | 358 | #ifdef LIBRESSL_INTERNAL |
359 | 359 | ||
360 | struct ssl3_state_internal_st; | 360 | struct ssl3_state_internal_st; |
361 | 361 | ||