From 9846584dc6b9809f73cbecd074c7278ae081014d Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 7 Jul 2022 13:02:59 +0000 Subject: [PATCH] Expose security level symbols and error codes in the headers. ok jsing --- lib/libssl/ssl.h | 4 +--- lib/libssl/tls1.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index c7339928489..d9a56b19018 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.218 2022/06/29 17:39:20 beck Exp $ */ +/* $OpenBSD: ssl.h,v 1.219 2022/07/07 13:02:59 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1507,7 +1507,6 @@ int SSL_set_session_secret_cb(SSL *s, void SSL_set_debug(SSL *s, int debug); int SSL_cache_hit(SSL *s); -#if defined(LIBRESSL_INTERNAL) /* What the "other" parameter contains in security callback */ /* Mask for type */ #define SSL_SECOP_OTHER_TYPE 0xffff0000 @@ -1576,7 +1575,6 @@ int SSL_get_security_level(const SSL *ssl); void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); int SSL_CTX_get_security_level(const SSL_CTX *ctx); -#endif /* LIBRESSL_INTERNAL */ #ifdef LIBRESSL_INTERNAL /* diff --git a/lib/libssl/tls1.h b/lib/libssl/tls1.h index 2f6e2e3bd07..0dadffc8e6a 100644 --- a/lib/libssl/tls1.h +++ b/lib/libssl/tls1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls1.h,v 1.53 2022/06/29 17:39:20 beck Exp $ */ +/* $OpenBSD: tls1.h,v 1.54 2022/07/07 13:02:59 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -159,11 +159,9 @@ extern "C" { #endif -#if defined(LIBRESSL_INTERNAL) #ifndef OPENSSL_TLS_SECURITY_LEVEL #define OPENSSL_TLS_SECURITY_LEVEL 1 #endif -#endif #define TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES 0 -- 2.20.1