Add --rsasha1 to feature-test
This commit is contained in:
@@ -21,11 +21,14 @@
|
||||
|
||||
#include <isc/fips.h>
|
||||
#include <isc/md.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/net.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
#include <dns/edns.h>
|
||||
|
||||
#include <dst/dst.h>
|
||||
|
||||
static void
|
||||
usage(void) {
|
||||
fprintf(stderr, "usage: feature-test <arg>\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);
|
||||
|
||||
Reference in New Issue
Block a user