From: Mark Andrews Date: Wed, 20 Jul 2022 05:42:30 +0000 (+1000) Subject: Add --rsasha1 to feature-test X-Git-Tag: v9.19.12~38^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6d85a6a2de8b9868eea21405c8b222023d136b6;p=thirdparty%2Fbind9.git Add --rsasha1 to feature-test --- diff --git a/bin/tests/system/feature-test.c b/bin/tests/system/feature-test.c index 647db428a3f..c27b5af23c0 100644 --- a/bin/tests/system/feature-test.c +++ b/bin/tests/system/feature-test.c @@ -21,11 +21,14 @@ #include #include +#include #include #include #include +#include + static void usage(void) { fprintf(stderr, "usage: feature-test \n"); @@ -43,6 +46,7 @@ usage(void) { fprintf(stderr, "\t--have-libxml2\n"); fprintf(stderr, "\t--ipv6only=no\n"); fprintf(stderr, "\t--md5\n"); + fprintf(stderr, "\t--rsasha1\n"); fprintf(stderr, "\t--tsan\n"); fprintf(stderr, "\t--with-dlz-filesystem\n"); fprintf(stderr, "\t--with-libidn2\n"); @@ -209,6 +213,17 @@ main(int argc, char **argv) { #endif /* defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY) */ } + if (strcasecmp(argv[1], "--rsasha1") == 0) { + int answer; + isc_mem_t *mctx = NULL; + isc_mem_create(&mctx); + dst_lib_init(mctx, NULL); + answer = dst_algorithm_supported(DST_ALG_RSASHA1) ? 0 : 1; + dst_lib_destroy(); + isc_mem_detach(&mctx); + return (answer); + } + if (strcmp(argv[1], "--with-dlz-filesystem") == 0) { #ifdef DLZ_FILESYSTEM return (0);