diff options
| author | jsing <> | 2020-05-19 16:35:21 +0000 |
|---|---|---|
| committer | jsing <> | 2020-05-19 16:35:21 +0000 |
| commit | 369bbcd163f15f6e452e14282f0a65dafde2f5ab (patch) | |
| tree | 5ff7e57b9c4172ec2feea5a8c0a76ee21339a4af /src/lib/libssl/ssl_locl.h | |
| parent | 5ce16e8a6720f50f7054baab450a98b2791794fc (diff) | |
| download | openbsd-369bbcd163f15f6e452e14282f0a65dafde2f5ab.tar.gz openbsd-369bbcd163f15f6e452e14282f0a65dafde2f5ab.tar.bz2 openbsd-369bbcd163f15f6e452e14282f0a65dafde2f5ab.zip | |
Replace SSL_PKEY_RSA_ENC/SSL_PKEY_RSA_SIGN with SSL_PKEY_RSA.
Some time prior to SSLeay 0.8.1b, SSL_PKEY_RSA_SIGN got added with the
intention of handling RSA sign only certificates... this incomplete code
had the following comment:
/* check to see if this is a signing only certificate */
/* EAY EAY EAY EAY */
And while the comment was removed in 2005, the incomplete RSA sign-only
handling has remained ever since.
Remove SSL_PKEY_RSA_SIGN and rename SSL_PKEY_RSA_ENC to SSL_PKEY_RSA. While
here also remove the unused SSL_PKEY_DH_RSA.
ok tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 41ac3ca35a..736005b5c9 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_locl.h,v 1.274 2020/05/11 18:19:19 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.275 2020/05/19 16:35:20 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 | * |
| @@ -333,12 +333,10 @@ __BEGIN_HIDDEN_DECLS | |||
| 333 | #define SSL_USE_TLS1_3_CIPHERS(s) \ | 333 | #define SSL_USE_TLS1_3_CIPHERS(s) \ |
| 334 | (s->method->internal->ssl3_enc->enc_flags & SSL_ENC_FLAG_TLS1_3_CIPHERS) | 334 | (s->method->internal->ssl3_enc->enc_flags & SSL_ENC_FLAG_TLS1_3_CIPHERS) |
| 335 | 335 | ||
| 336 | #define SSL_PKEY_RSA_ENC 0 | 336 | #define SSL_PKEY_RSA 0 |
| 337 | #define SSL_PKEY_RSA_SIGN 1 | 337 | #define SSL_PKEY_ECC 1 |
| 338 | #define SSL_PKEY_DH_RSA 2 | 338 | #define SSL_PKEY_GOST01 2 |
| 339 | #define SSL_PKEY_ECC 3 | 339 | #define SSL_PKEY_NUM 3 |
| 340 | #define SSL_PKEY_GOST01 4 | ||
| 341 | #define SSL_PKEY_NUM 5 | ||
| 342 | 340 | ||
| 343 | #define SSL_MAX_EMPTY_RECORDS 32 | 341 | #define SSL_MAX_EMPTY_RECORDS 32 |
| 344 | 342 | ||
