summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
authortb <>2021-11-26 16:41:42 +0000
committertb <>2021-11-26 16:41:42 +0000
commit73417032166596d39794dce540d6958a03504f5e (patch)
treec92bdaad8dd207866e32754aa3f446b82aec8ae9 /src/lib/libssl/ssl_both.c
parent2b8cbe4d18096cd5ea859d6ff14cc1f6b27f13d9 (diff)
downloadopenbsd-73417032166596d39794dce540d6958a03504f5e.tar.gz
openbsd-73417032166596d39794dce540d6958a03504f5e.tar.bz2
openbsd-73417032166596d39794dce540d6958a03504f5e.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.c4
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) {