- Implemented opportunistic IPsec support module (ipsecmod).

- Some whitespace fixup.


git-svn-id: file:///svn/unbound/trunk@4158 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
George Thessalonikefs
2017-05-16 12:39:24 +00:00
parent 5febdd39a1
commit 491b0a26e4
29 changed files with 2869 additions and 229 deletions
+11 -1
View File
@@ -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, "12egcho: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':