From 15de2de8449b4f5063f93578ae68aa0bc79a205c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 12 May 2018 11:54:35 +0000 Subject: Vendor import of Unbound 1.6.4. --- testcode/testbound.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'testcode/testbound.c') diff --git a/testcode/testbound.c b/testcode/testbound.c index 180b2c256a49..20c99608fdd7 100644 --- a/testcode/testbound.c +++ b/testcode/testbound.c @@ -78,6 +78,7 @@ testbound_usage(void) printf("-g detect GOST support (exit code 0 or 1)\n"); printf("-e detect ECDSA support (exit code 0 or 1)\n"); printf("-c detect CLIENT_SUBNET support (exit code 0 or 1)\n"); + printf("-i detect IPSECMOD support (exit code 0 or 1)\n"); printf("-s testbound self-test - unit test of testbound parts.\n"); printf("-o str unbound commandline options separated by spaces.\n"); printf("Version %s\n", PACKAGE_VERSION); @@ -281,7 +282,7 @@ main(int argc, char* argv[]) pass_argc = 1; pass_argv[0] = "unbound"; add_opts("-d", &pass_argc, pass_argv); - while( (c=getopt(argc, argv, "12egho:p:s")) != -1) { + while( (c=getopt(argc, argv, "12egciho:p:s")) != -1) { switch(c) { case 's': free(pass_argv[1]); @@ -335,6 +336,15 @@ main(int argc, char* argv[]) #else printf("CLIENT_SUBNET not supported\n"); exit(1); +#endif + break; + case 'i': +#ifdef USE_IPSECMOD + printf("IPSECMOD supported\n"); + exit(0); +#else + printf("IPSECMOD not supported\n"); + exit(1); #endif break; case 'p': -- cgit v1.2.3