summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-01-09 15:53:53 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-01-09 15:53:53 +0000
commit2d299f9a3d6ea3bcb88c7ef851fc2f5aa5bf75ed (patch)
treefff0422cfeede7248fa636843f9da6edd2341a08 /lib/libssl
parent23012e6e9bc699a429f67fe0c73512b9a65af710 (diff)
Swap arguments to ssl_check_srvr_ecc_cert_and_alg()
If a libssl function takes an SSL *, it should normally be the first argument.
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/ssl_clnt.c6
-rw-r--r--lib/libssl/ssl_lib.c8
-rw-r--r--lib/libssl/ssl_locl.h4
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/libssl/ssl_clnt.c b/lib/libssl/ssl_clnt.c
index ca54515a329..c031b70c0ac 100644
--- a/lib/libssl/ssl_clnt.c
+++ b/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_clnt.c,v 1.132 2022/01/09 15:40:13 jsing Exp $ */
+/* $OpenBSD: ssl_clnt.c,v 1.133 2022/01/09 15:53:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2456,8 +2456,8 @@ ssl3_check_cert_and_algorithm(SSL *s)
idx = s->session->peer_cert_type;
if (idx == SSL_PKEY_ECC) {
- if (ssl_check_srvr_ecc_cert_and_alg(
- s->session->peer_pkeys[idx].x509, s) == 0) {
+ if (ssl_check_srvr_ecc_cert_and_alg(s,
+ s->session->peer_pkeys[idx].x509) == 0) {
/* check failed */
SSLerror(s, SSL_R_BAD_ECC_CERT);
goto fatal_err;
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index fb0920cdf2d..bfa312207db 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.283 2022/01/08 12:59:58 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.284 2022/01/09 15:53:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2235,10 +2235,10 @@ ssl_using_ecc_cipher(SSL *s)
}
int
-ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s)
+ssl_check_srvr_ecc_cert_and_alg(SSL *s, X509 *x)
{
- const SSL_CIPHER *cs = S3I(s)->hs.cipher;
- unsigned long alg_a;
+ const SSL_CIPHER *cs = S3I(s)->hs.cipher;
+ unsigned long alg_a;
alg_a = cs->algorithm_auth;
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index d559e7148a3..fcb369405c9 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.379 2022/01/08 12:59:59 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.380 2022/01/09 15:53:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1479,7 +1479,7 @@ int tls12_derive_master_secret(SSL *s, uint8_t *premaster_secret,
size_t premaster_secret_len);
int ssl_using_ecc_cipher(SSL *s);
-int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s);
+int ssl_check_srvr_ecc_cert_and_alg(SSL *s, X509 *x);
void tls1_get_formatlist(SSL *s, int client_formats, const uint8_t **pformats,
size_t *pformatslen);