From 585c11d2b544684d641066bf05e3fc3734d50309 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 13 Jun 2021 15:47:11 +0000 Subject: Define SSL_AD_* as actual values. Rather than having SSL_AD_* as defines that refer to SSL3_AD_* or TLS1_AD_*, just give them actual values directly since it is more readable and the indirection provides no value. Place SSL3_AD_* and TLS1_AD_* under #ifndef LIBRESSL_INTERNAL to prevent further usage. ok tb@ --- src/lib/libssl/ssl3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl3.h') diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index 631f8dee23..04c12bca9c 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl3.h,v 1.53 2021/05/10 17:10:57 tb Exp $ */ +/* $OpenBSD: ssl3.h,v 1.54 2021/06/13 15:47:11 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -297,6 +297,7 @@ extern "C" { #define SSL3_AL_WARNING 1 #define SSL3_AL_FATAL 2 +#ifndef LIBRESSL_INTERNAL #define SSL3_AD_CLOSE_NOTIFY 0 #define SSL3_AD_UNEXPECTED_MESSAGE 10 /* fatal */ #define SSL3_AD_BAD_RECORD_MAC 20 /* fatal */ @@ -309,6 +310,7 @@ extern "C" { #define SSL3_AD_CERTIFICATE_EXPIRED 45 #define SSL3_AD_CERTIFICATE_UNKNOWN 46 #define SSL3_AD_ILLEGAL_PARAMETER 47 /* fatal */ +#endif #define TLS1_HB_REQUEST 1 #define TLS1_HB_RESPONSE 2 -- cgit v1.2.3-55-g6feb