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/tls1.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/tls1.h | 10 |
1 files changed, 3 insertions, 7 deletions
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 @@ | |||
| 1 | /* $OpenBSD: tls1.h,v 1.42 2021/03/10 18:32:38 jsing Exp $ */ | 1 | /* $OpenBSD: tls1.h,v 1.43 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 | * |
| @@ -185,12 +185,7 @@ extern "C" { | |||
| 185 | ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) | 185 | ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) |
| 186 | #endif | 186 | #endif |
| 187 | 187 | ||
| 188 | /* | 188 | #ifndef LIBRESSL_INTERNAL |
| 189 | * TLS Alert codes. | ||
| 190 | * | ||
| 191 | * https://www.iana.org/assignments/tls-parameters/#tls-parameters-6 | ||
| 192 | */ | ||
| 193 | |||
| 194 | #define TLS1_AD_DECRYPTION_FAILED 21 | 189 | #define TLS1_AD_DECRYPTION_FAILED 21 |
| 195 | #define TLS1_AD_RECORD_OVERFLOW 22 | 190 | #define TLS1_AD_RECORD_OVERFLOW 22 |
| 196 | #define TLS1_AD_UNKNOWN_CA 48 /* fatal */ | 191 | #define TLS1_AD_UNKNOWN_CA 48 /* fatal */ |
| @@ -213,6 +208,7 @@ extern "C" { | |||
| 213 | #define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114 | 208 | #define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114 |
| 214 | /* Code 115 from RFC 4279. */ | 209 | /* Code 115 from RFC 4279. */ |
| 215 | #define TLS1_AD_UNKNOWN_PSK_IDENTITY 115 /* fatal */ | 210 | #define TLS1_AD_UNKNOWN_PSK_IDENTITY 115 /* fatal */ |
| 211 | #endif | ||
| 216 | 212 | ||
| 217 | /* | 213 | /* |
| 218 | * TLS ExtensionType values. | 214 | * TLS ExtensionType values. |
