diff options
Diffstat (limited to 'src/lib/libssl/ssl_both.c')
| -rw-r--r-- | src/lib/libssl/ssl_both.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_both.c b/src/lib/libssl/ssl_both.c index 6e38463e27..62652f8406 100644 --- a/src/lib/libssl/ssl_both.c +++ b/src/lib/libssl/ssl_both.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_both.c,v 1.38 2021/10/23 13:36:03 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_both.c,v 1.39 2021/11/26 16:41:42 tb 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 | * |
| @@ -534,7 +534,7 @@ ssl_cert_type(X509 *x, EVP_PKEY *pkey) | |||
| 534 | if (pk == NULL) | 534 | if (pk == NULL) |
| 535 | goto err; | 535 | goto err; |
| 536 | 536 | ||
| 537 | i = pk->type; | 537 | i = EVP_PKEY_id(pk); |
| 538 | if (i == EVP_PKEY_RSA) { | 538 | if (i == EVP_PKEY_RSA) { |
| 539 | ret = SSL_PKEY_RSA; | 539 | ret = SSL_PKEY_RSA; |
| 540 | } else if (i == EVP_PKEY_EC) { | 540 | } else if (i == EVP_PKEY_EC) { |
