summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c
diff options
context:
space:
mode:
authorinoguchi <>2021-05-03 23:42:04 +0000
committerinoguchi <>2021-05-03 23:42:04 +0000
commit425585e3db316863a1dc1691c27526bdb3856fe8 (patch)
treedd42fc2f019ffd68c9302da6e3e502c50be409fd /src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c
parentfdc3fefa5102acc125a07b0ba8f750f4d289c042 (diff)
downloadopenbsd-425585e3db316863a1dc1691c27526bdb3856fe8.tar.gz
openbsd-425585e3db316863a1dc1691c27526bdb3856fe8.tar.bz2
openbsd-425585e3db316863a1dc1691c27526bdb3856fe8.zip
Modify regress ssl_get_shared_ciphers for portable
- Split out the intermediate path (../certs/) to Makefile - Change 'shutdown' to 'shutdown_all' ok tb@
Diffstat (limited to 'src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c')
-rw-r--r--src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c
index 7bffba2fa4..d53aff54f0 100644
--- a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c
+++ b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_get_shared_ciphers.c,v 1.8 2021/01/21 05:02:25 tb Exp $ */ 1/* $OpenBSD: ssl_get_shared_ciphers.c,v 1.9 2021/05/03 23:42:04 inoguchi Exp $ */
2/* 2/*
3 * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2021 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -353,7 +353,7 @@ handshake(SSL *client_ssl, SSL *server_ssl, const char *description)
353} 353}
354 354
355static int 355static int
356shutdown(SSL *client_ssl, SSL *server_ssl, const char *description) 356shutdown_all(SSL *client_ssl, SSL *server_ssl, const char *description)
357{ 357{
358 int loops = 0, client_ret = 0, server_ret = 0; 358 int loops = 0, client_ret = 0, server_ret = 0;
359 359
@@ -442,7 +442,7 @@ test_get_shared_ciphers(const struct ssl_shared_ciphers_test_data *test)
442 goto err; 442 goto err;
443 } 443 }
444 444
445 if (!shutdown(client_ssl, server_ssl, test->description)) 445 if (!shutdown_all(client_ssl, server_ssl, test->description))
446 goto err; 446 goto err;
447 447
448 failed = check_shared_ciphers(test, buf); 448 failed = check_shared_ciphers(test, buf);
@@ -462,7 +462,7 @@ main(int argc, char **argv)
462 size_t i; 462 size_t i;
463 int failed = 0; 463 int failed = 0;
464 464
465 if (asprintf(&server_cert, "%s/../certs/server.pem", CURDIR) == -1) { 465 if (asprintf(&server_cert, "%s/server.pem", CERTSDIR) == -1) {
466 fprintf(stderr, "asprintf server_cert failed\n"); 466 fprintf(stderr, "asprintf server_cert failed\n");
467 failed = 1; 467 failed = 1;
468 goto err; 468 goto err;