diff options
-rw-r--r-- | src/regress/lib/libcrypto/x509/rfc3779/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/x509/rfc3779/Makefile b/src/regress/lib/libcrypto/x509/rfc3779/Makefile index 9786060d15..b0b23c57c9 100644 --- a/src/regress/lib/libcrypto/x509/rfc3779/Makefile +++ b/src/regress/lib/libcrypto/x509/rfc3779/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.3 2021/12/24 14:00:11 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.4 2022/01/06 14:55:52 tb Exp $ |
2 | 2 | ||
3 | .include "../../Makefile.inc" | 3 | .include "../../Makefile.inc" |
4 | 4 | ||
@@ -6,6 +6,6 @@ PROG= rfc3779 | |||
6 | LDADD= ${CRYPTO_INT} | 6 | LDADD= ${CRYPTO_INT} |
7 | DPADD= ${LIBCRYPTO} | 7 | DPADD= ${LIBCRYPTO} |
8 | WARNINGS= Yes | 8 | WARNINGS= Yes |
9 | CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL -Werror | 9 | CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL -Werror -g -O0 |
10 | 10 | ||
11 | .include <bsd.regress.mk> | 11 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c index e6636bb06f..384d1441e4 100644 --- a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c +++ b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rfc3779.c,v 1.4 2022/01/06 09:46:05 tb Exp $ */ | 1 | /* $OpenBSD: rfc3779.c,v 1.5 2022/01/06 14:55:52 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -471,6 +471,11 @@ struct build_addr_block_test_data { | |||
471 | int afi_len; | 471 | int afi_len; |
472 | }; | 472 | }; |
473 | 473 | ||
474 | /* | ||
475 | * This struct isn't const since the address arguments of | ||
476 | * X509v3_addr_add_{prefix,range}() aren't const and it's | ||
477 | * not worth working around this. | ||
478 | */ | ||
474 | struct build_addr_block_test_data build_addr_block_tests[] = { | 479 | struct build_addr_block_test_data build_addr_block_tests[] = { |
475 | { | 480 | { |
476 | .description = "RFC 3779, Appendix B, example 1", | 481 | .description = "RFC 3779, Appendix B, example 1", |