summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl3.h
diff options
context:
space:
mode:
authorjsing <>2021-06-13 15:47:11 +0000
committerjsing <>2021-06-13 15:47:11 +0000
commit585c11d2b544684d641066bf05e3fc3734d50309 (patch)
tree2476825cefcc33fed1c57a651360cf0aa187c8bd /src/lib/libssl/ssl3.h
parent83aea7ddd63a4f3e06d9e54201546df2afd0807b (diff)
downloadopenbsd-585c11d2b544684d641066bf05e3fc3734d50309.tar.gz
openbsd-585c11d2b544684d641066bf05e3fc3734d50309.tar.bz2
openbsd-585c11d2b544684d641066bf05e3fc3734d50309.zip
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@
Diffstat (limited to 'src/lib/libssl/ssl3.h')
-rw-r--r--src/lib/libssl/ssl3.h4
1 files changed, 3 insertions, 1 deletions
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 @@
1/* $OpenBSD: ssl3.h,v 1.53 2021/05/10 17:10:57 tb Exp $ */ 1/* $OpenBSD: ssl3.h,v 1.54 2021/06/13 15:47:11 jsing 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 *
@@ -297,6 +297,7 @@ extern "C" {
297#define SSL3_AL_WARNING 1 297#define SSL3_AL_WARNING 1
298#define SSL3_AL_FATAL 2 298#define SSL3_AL_FATAL 2
299 299
300#ifndef LIBRESSL_INTERNAL
300#define SSL3_AD_CLOSE_NOTIFY 0 301#define SSL3_AD_CLOSE_NOTIFY 0
301#define SSL3_AD_UNEXPECTED_MESSAGE 10 /* fatal */ 302#define SSL3_AD_UNEXPECTED_MESSAGE 10 /* fatal */
302#define SSL3_AD_BAD_RECORD_MAC 20 /* fatal */ 303#define SSL3_AD_BAD_RECORD_MAC 20 /* fatal */
@@ -309,6 +310,7 @@ extern "C" {
309#define SSL3_AD_CERTIFICATE_EXPIRED 45 310#define SSL3_AD_CERTIFICATE_EXPIRED 45
310#define SSL3_AD_CERTIFICATE_UNKNOWN 46 311#define SSL3_AD_CERTIFICATE_UNKNOWN 46
311#define SSL3_AD_ILLEGAL_PARAMETER 47 /* fatal */ 312#define SSL3_AD_ILLEGAL_PARAMETER 47 /* fatal */
313#endif
312 314
313#define TLS1_HB_REQUEST 1 315#define TLS1_HB_REQUEST 1
314#define TLS1_HB_RESPONSE 2 316#define TLS1_HB_RESPONSE 2