summaryrefslogtreecommitdiff
path: root/src/regress/lib/libtls/signer/signertest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libtls/signer/signertest.c')
-rw-r--r--src/regress/lib/libtls/signer/signertest.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/regress/lib/libtls/signer/signertest.c b/src/regress/lib/libtls/signer/signertest.c
index 89af257372..f0523d34b4 100644
--- a/src/regress/lib/libtls/signer/signertest.c
+++ b/src/regress/lib/libtls/signer/signertest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: signertest.c,v 1.5 2022/03/24 15:58:57 tb Exp $ */ 1/* $OpenBSD: signertest.c,v 1.6 2023/04/14 12:41:26 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2018, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2018, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -34,7 +34,11 @@
34 34
35#include "tls_internal.h" 35#include "tls_internal.h"
36 36
37const char *cert_path; 37#ifndef CERTSDIR
38#define CERTSDIR "."
39#endif
40
41const char *cert_path = CERTSDIR;
38int sign_cb_count; 42int sign_cb_count;
39 43
40static void 44static void
@@ -453,12 +457,12 @@ main(int argc, char **argv)
453{ 457{
454 int failure = 0; 458 int failure = 0;
455 459
456 if (argc != 2) { 460 if (argc > 2) {
457 fprintf(stderr, "usage: %s certpath\n", argv[0]); 461 fprintf(stderr, "usage: %s [certpath]\n", argv[0]);
458 return (1); 462 return (1);
459 } 463 }
460 464 if (argc == 2)
461 cert_path = argv[1]; 465 cert_path = argv[1];
462 466
463 failure |= do_signer_tests(); 467 failure |= do_signer_tests();
464 failure |= do_signer_tls_tests(); 468 failure |= do_signer_tls_tests();