diff options
Diffstat (limited to 'src/regress/lib/libssl/ssl/ssltest.c')
-rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/ssl/ssltest.c b/src/regress/lib/libssl/ssl/ssltest.c index 32253844b2..0deac3e736 100644 --- a/src/regress/lib/libssl/ssl/ssltest.c +++ b/src/regress/lib/libssl/ssl/ssltest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssltest.c,v 1.33 2021/11/21 21:40:45 tb Exp $ */ | 1 | /* $OpenBSD: ssltest.c,v 1.34 2022/07/07 11:40:17 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 | * |
@@ -659,8 +659,7 @@ bad: | |||
659 | EC_KEY_free(ecdh); | 659 | EC_KEY_free(ecdh); |
660 | } | 660 | } |
661 | 661 | ||
662 | if (!SSL_CTX_use_certificate_file(s_ctx, server_cert, | 662 | if (!SSL_CTX_use_certificate_chain_file(s_ctx, server_cert)) { |
663 | SSL_FILETYPE_PEM)) { | ||
664 | ERR_print_errors(bio_err); | 663 | ERR_print_errors(bio_err); |
665 | } else if (!SSL_CTX_use_PrivateKey_file(s_ctx, | 664 | } else if (!SSL_CTX_use_PrivateKey_file(s_ctx, |
666 | (server_key ? server_key : server_cert), SSL_FILETYPE_PEM)) { | 665 | (server_key ? server_key : server_cert), SSL_FILETYPE_PEM)) { |
@@ -669,8 +668,7 @@ bad: | |||
669 | } | 668 | } |
670 | 669 | ||
671 | if (client_auth) { | 670 | if (client_auth) { |
672 | SSL_CTX_use_certificate_file(c_ctx, client_cert, | 671 | SSL_CTX_use_certificate_chain_file(c_ctx, client_cert); |
673 | SSL_FILETYPE_PEM); | ||
674 | SSL_CTX_use_PrivateKey_file(c_ctx, | 672 | SSL_CTX_use_PrivateKey_file(c_ctx, |
675 | (client_key ? client_key : client_cert), | 673 | (client_key ? client_key : client_cert), |
676 | SSL_FILETYPE_PEM); | 674 | SSL_FILETYPE_PEM); |