diff options
| author | jsing <> | 2022-02-03 16:33:12 +0000 |
|---|---|---|
| committer | jsing <> | 2022-02-03 16:33:12 +0000 |
| commit | 1797a334a41f2408c221e936472024878d34d7c6 (patch) | |
| tree | f898df6442fa1535bd54e575b63b8dd68b1983de /src/lib/libssl/tls13_client.c | |
| parent | e0ca43dbb96b7050114088357efcbfa6b503c87f (diff) | |
| download | openbsd-1797a334a41f2408c221e936472024878d34d7c6.tar.gz openbsd-1797a334a41f2408c221e936472024878d34d7c6.tar.bz2 openbsd-1797a334a41f2408c221e936472024878d34d7c6.zip | |
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 'src/lib/libssl/tls13_client.c')
| -rw-r--r-- | src/lib/libssl/tls13_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_client.c b/src/lib/libssl/tls13_client.c index 4b52f6cf62..11eb880a6e 100644 --- a/src/lib/libssl/tls13_client.c +++ b/src/lib/libssl/tls13_client.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_client.c,v 1.93 2022/01/11 19:03:15 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_client.c,v 1.94 2022/02/03 16:33:12 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -625,7 +625,7 @@ tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
| 625 | goto err; | 625 | goto err; |
| 626 | if (EVP_PKEY_missing_parameters(pkey)) | 626 | if (EVP_PKEY_missing_parameters(pkey)) |
| 627 | goto err; | 627 | goto err; |
| 628 | if ((cert_type = ssl_cert_type(cert, pkey)) < 0) | 628 | if ((cert_type = ssl_cert_type(pkey)) < 0) |
| 629 | goto err; | 629 | goto err; |
| 630 | 630 | ||
| 631 | X509_up_ref(cert); | 631 | X509_up_ref(cert); |
