summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-02-03 16:33:13 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-02-03 16:33:13 +0000
commit3b56f13ac02b7de6a26ff1017b59182743dc13d3 (patch)
treea928bca0cb92d0424f83f167dc1eff84202e5fa6 /lib/libssl/tls13_client.c
parent5a2784fe64d68f6ae98d852fe169a999bfd8ea03 (diff)
Cleanup/simplify ssl_cert_type()
Remove the X509 argument as it is unused - this was passed so that ssl_cert_type() can get the public key from the X509 object if the EVP_PKEY argument is NULL, however this is never the case. ok tb@
Diffstat (limited to 'lib/libssl/tls13_client.c')
-rw-r--r--lib/libssl/tls13_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c
index 4b52f6cf627..11eb880a6ef 100644
--- a/lib/libssl/tls13_client.c
+++ b/lib/libssl/tls13_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_client.c,v 1.93 2022/01/11 19:03:15 jsing Exp $ */
+/* $OpenBSD: tls13_client.c,v 1.94 2022/02/03 16:33:12 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -625,7 +625,7 @@ tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs)
goto err;
if (EVP_PKEY_missing_parameters(pkey))
goto err;
- if ((cert_type = ssl_cert_type(cert, pkey)) < 0)
+ if ((cert_type = ssl_cert_type(pkey)) < 0)
goto err;
X509_up_ref(cert);