diff options
| author | jsing <> | 2021-06-13 15:47:11 +0000 |
|---|---|---|
| committer | jsing <> | 2021-06-13 15:47:11 +0000 |
| commit | cca5f4b774f73afe5ba37042bdd020d0205f8f2c (patch) | |
| tree | 2476825cefcc33fed1c57a651360cf0aa187c8bd /src/lib/libssl/ssl3.h | |
| parent | cbbda7771dfc3fb2545ee7458ce5ecef7c589352 (diff) | |
| download | openbsd-cca5f4b774f73afe5ba37042bdd020d0205f8f2c.tar.gz openbsd-cca5f4b774f73afe5ba37042bdd020d0205f8f2c.tar.bz2 openbsd-cca5f4b774f73afe5ba37042bdd020d0205f8f2c.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 '')
| -rw-r--r-- | src/lib/libssl/ssl3.h | 4 |
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 |
