From 047513710aec6d20dd9f0d030854267c1db9f0ef Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 20 Jun 2013 22:11:42 -0400 Subject: [PATCH] [client] add GPG_NO_SIGNING_PW to --save-rc-stanza functionality --- client/config_init.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/config_init.c b/client/config_init.c index 08219f60..616e5067 100644 --- a/client/config_init.c +++ b/client/config_init.c @@ -757,13 +757,13 @@ create_fwknoprc(const char *rcfile) "# It is this identifier (or name) that is used from the fwknop command line\n" "# via the '-n ' argument to reference the corresponding stanza.\n" "#\n" - "# The parameters within the stanza typicaly match corresponding client \n" + "# The parameters within the stanza typically match corresponding client \n" "# command-line parameters.\n" "#\n" "# The first one should always be `[default]' as it defines the global\n" "# default settings for the user. These override the program defaults\n" "# for these parameters. If a named stanza is used, its entries will\n" - "# override any of the default. Command-line options will trump them\n" + "# override any of the default values. Command-line options will trump them\n" "# all.\n" "#\n" "# Subsequent stanzas will have only the overriding and destination\n" @@ -797,7 +797,7 @@ create_fwknoprc(const char *rcfile) "\n" "# User-provided named stanzas:\n" "\n" - "# Example for a destination server of 192.168.1.20 to open access to \n" + "# Example for a destination server of 192.168.1.20 to open access to\n" "# SSH for an IP that is resolved externally, and one with a NAT request\n" "# for a specific source IP that maps port 8088 on the server\n" "# to port 88 on 192.168.1.55 with timeout.\n" @@ -1222,6 +1222,9 @@ add_single_var_to_rc(FILE* fhandle, short var_pos, fko_cli_options_t *options) case FWKNOP_CLI_ARG_GPG_HOMEDIR : strlcpy(val, options->gpg_home_dir, sizeof(val)); break; + case FWKNOP_CLI_ARG_GPG_NO_SIGNING_PW : + bool_to_yesno(options->gpg_no_signing_pw, val, sizeof(val)); + break; case FWKNOP_CLI_ARG_SPOOF_USER : strlcpy(val, options->spoof_user, sizeof(val)); break;