Skip to content

Commit

Permalink
added --built-withlibnss option
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr authored and shussain committed Nov 19, 2018
1 parent 8d03d86 commit e0b2d98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions programs/pluto/plutomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ usage(const char *mess)
"[--ocspuri] "
"[--uniqueids] "
"[--noretransmits] "
"[--built-withlibnss] "
"\n\nIPsec stack options\n\t"
"[--use-auto] "
"[--use-klips] "
Expand Down Expand Up @@ -455,6 +456,8 @@ main(int argc, char **argv)
{ "virtual_private", required_argument, NULL, '6' },
{ "nhelpers", required_argument, NULL, 'j' },

{ "built-withlibnss", no_argument, NULL, '7' },

/* might not be enabled, but always accept the option */
{ "secctx_attr_value", required_argument, NULL, 'w' },
#ifdef DEBUG
Expand Down Expand Up @@ -753,6 +756,14 @@ main(int argc, char **argv)
virtual_private = optarg;
continue;

case '7': /* --built-withlibnss */
#ifdef HAVE_LIBNSS
exit(0);
#else
exit(1);
#endif
continue;

default:
#ifdef DEBUG
if (c >= DBG_OFFSET)
Expand Down

0 comments on commit e0b2d98

Please sign in to comment.