summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/asn1/Makefile26
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1basic.c4
2 files changed, 16 insertions, 14 deletions
diff --git a/src/regress/lib/libcrypto/asn1/Makefile b/src/regress/lib/libcrypto/asn1/Makefile
index ce49c0a9c0..17817514ac 100644
--- a/src/regress/lib/libcrypto/asn1/Makefile
+++ b/src/regress/lib/libcrypto/asn1/Makefile
@@ -1,6 +1,6 @@
1# $OpenBSD: Makefile,v 1.12 2021/12/24 08:31:55 jsing Exp $ 1# $OpenBSD: Makefile,v 1.13 2022/01/12 07:55:25 tb Exp $
2 2
3TESTS = \ 3PROGS = \
4 asn1api \ 4 asn1api \
5 asn1basic \ 5 asn1basic \
6 asn1complex \ 6 asn1complex \
@@ -11,20 +11,20 @@ TESTS = \
11 rfc5280time \ 11 rfc5280time \
12 string_table 12 string_table
13 13
14PROGS = ${TESTS} 14DPADD+= ${LIBCRYPTO} ${LIBSSL}
15
16REGRESS_TARGETS= all_tests
17
18LDADD= -lcrypto
19DPADD= ${LIBCRYPTO} ${LIBSSL}
20WARNINGS= Yes 15WARNINGS= Yes
21LDFLAGS+= -lcrypto 16LDFLAGS+= -lcrypto
22CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror 17CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
18CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1
19CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring
20
21LDADD_asn1basic = ${CRYPTO_INT}
22
23.for p in ${PROGS}
24REGRESS_TARGETS += run-$p
23 25
24all_tests: ${TESTS} 26run-$p: $p
25 @for test in $>; do \ 27 @./$p
26 echo "\n======== $$test ========"; \ 28.endfor
27 ./$$test; \
28 done
29 29
30.include <bsd.regress.mk> 30.include <bsd.regress.mk>
diff --git a/src/regress/lib/libcrypto/asn1/asn1basic.c b/src/regress/lib/libcrypto/asn1/asn1basic.c
index c879ee6329..6b3c72f975 100644
--- a/src/regress/lib/libcrypto/asn1/asn1basic.c
+++ b/src/regress/lib/libcrypto/asn1/asn1basic.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1basic.c,v 1.3 2022/01/06 15:21:33 jsing Exp $ */ 1/* $OpenBSD: asn1basic.c,v 1.4 2022/01/12 07:55:25 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -21,6 +21,8 @@
21#include <stdio.h> 21#include <stdio.h>
22#include <string.h> 22#include <string.h>
23 23
24#include "asn1_locl.h"
25
24static void 26static void
25hexdump(const unsigned char *buf, size_t len) 27hexdump(const unsigned char *buf, size_t len)
26{ 28{