diff options
-rw-r--r-- | src/regress/lib/libcrypto/asn1/Makefile | 26 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1basic.c | 4 |
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 | ||
3 | TESTS = \ | 3 | PROGS = \ |
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 | ||
14 | PROGS = ${TESTS} | 14 | DPADD+= ${LIBCRYPTO} ${LIBSSL} |
15 | |||
16 | REGRESS_TARGETS= all_tests | ||
17 | |||
18 | LDADD= -lcrypto | ||
19 | DPADD= ${LIBCRYPTO} ${LIBSSL} | ||
20 | WARNINGS= Yes | 15 | WARNINGS= Yes |
21 | LDFLAGS+= -lcrypto | 16 | LDFLAGS+= -lcrypto |
22 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror | 17 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror |
18 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1 | ||
19 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring | ||
20 | |||
21 | LDADD_asn1basic = ${CRYPTO_INT} | ||
22 | |||
23 | .for p in ${PROGS} | ||
24 | REGRESS_TARGETS += run-$p | ||
23 | 25 | ||
24 | all_tests: ${TESTS} | 26 | run-$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 | |||
24 | static void | 26 | static void |
25 | hexdump(const unsigned char *buf, size_t len) | 27 | hexdump(const unsigned char *buf, size_t len) |
26 | { | 28 | { |