summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2022-01-09 15:55:37 +0000
committerjsing <>2022-01-09 15:55:37 +0000
commit1050bd87c0df9d7bceeb4e58ed0c9836dc272a6b (patch)
tree28a400ee9b46b1096cf72cf26a423f87ef3a7f34 /src
parent77684ce583168f113f26f620953f6f5d7dacbdfa (diff)
downloadopenbsd-1050bd87c0df9d7bceeb4e58ed0c9836dc272a6b.tar.gz
openbsd-1050bd87c0df9d7bceeb4e58ed0c9836dc272a6b.tar.bz2
openbsd-1050bd87c0df9d7bceeb4e58ed0c9836dc272a6b.zip
ssl_check_srvr_ecc_cert_and_alg() only returns 0/1 - test accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_clnt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index c031b70c0a..19d83653c9 100644
--- a/src/lib/libssl/ssl_clnt.c
+++ b/src/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_clnt.c,v 1.133 2022/01/09 15:53:52 jsing Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.134 2022/01/09 15:55:37 jsing 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 *
@@ -2456,8 +2456,8 @@ ssl3_check_cert_and_algorithm(SSL *s)
2456 2456
2457 idx = s->session->peer_cert_type; 2457 idx = s->session->peer_cert_type;
2458 if (idx == SSL_PKEY_ECC) { 2458 if (idx == SSL_PKEY_ECC) {
2459 if (ssl_check_srvr_ecc_cert_and_alg(s, 2459 if (!ssl_check_srvr_ecc_cert_and_alg(s,
2460 s->session->peer_pkeys[idx].x509) == 0) { 2460 s->session->peer_pkeys[idx].x509)) {
2461 /* check failed */ 2461 /* check failed */
2462 SSLerror(s, SSL_R_BAD_ECC_CERT); 2462 SSLerror(s, SSL_R_BAD_ECC_CERT);
2463 goto fatal_err; 2463 goto fatal_err;