diff options
author | tb <> | 2021-11-26 16:41:42 +0000 |
---|---|---|
committer | tb <> | 2021-11-26 16:41:42 +0000 |
commit | e84f8ffa4a738212bdc72ac70cde22346dc369dd (patch) | |
tree | c92bdaad8dd207866e32754aa3f446b82aec8ae9 /src/lib/libssl/ssl_both.c | |
parent | 6b08604ab5e3fc8e6db10211d78a155d876da903 (diff) | |
download | openbsd-e84f8ffa4a738212bdc72ac70cde22346dc369dd.tar.gz openbsd-e84f8ffa4a738212bdc72ac70cde22346dc369dd.tar.bz2 openbsd-e84f8ffa4a738212bdc72ac70cde22346dc369dd.zip |
Stop reaching into EVP_PKEY in the rest of libssl.
ok inoguchi jsing
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) { |