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/tls1.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/lib/libssl/tls1.h') diff --git a/src/lib/libssl/tls1.h b/src/lib/libssl/tls1.h index 628a6b2fca..771ed96fc9 100644 --- a/src/lib/libssl/tls1.h +++ b/src/lib/libssl/tls1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls1.h,v 1.42 2021/03/10 18:32:38 jsing Exp $ */ +/* $OpenBSD: tls1.h,v 1.43 2021/06/13 15:47:11 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -185,12 +185,7 @@ extern "C" { ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) #endif -/* - * TLS Alert codes. - * - * https://www.iana.org/assignments/tls-parameters/#tls-parameters-6 - */ - +#ifndef LIBRESSL_INTERNAL #define TLS1_AD_DECRYPTION_FAILED 21 #define TLS1_AD_RECORD_OVERFLOW 22 #define TLS1_AD_UNKNOWN_CA 48 /* fatal */ @@ -213,6 +208,7 @@ extern "C" { #define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114 /* Code 115 from RFC 4279. */ #define TLS1_AD_UNKNOWN_PSK_IDENTITY 115 /* fatal */ +#endif /* * TLS ExtensionType values. -- cgit v1.2.3-55-g6feb