Added GPG_SIGNER and GPG_RECIPIENT to the list of important variables.
authorFranck Joncourt <franck@debian.org>
Sun, 5 May 2013 19:43:31 +0000 (21:43 +0200)
committerFranck Joncourt <franck@debian.org>
Sun, 5 May 2013 19:43:31 +0000 (21:43 +0200)
client/config_init.c

index a13c10d..6b1a970 100644 (file)
@@ -52,7 +52,9 @@
 #define FWKNOP_CRITICAL_VARS_BM     (     FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_KEY_RIJNDAEL)        \
                                         | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_KEY_RIJNDAEL_BASE64) \
                                         | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_KEY_HMAC)            \
-                                        | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_KEY_HMAC_BASE64) )
+                                        | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_KEY_HMAC_BASE64)     \
+                                        | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_GPG_RECIPIENT)       \
+                                        | FWKNOP_CLI_ARG_BM(FWKNOP_CLI_ARG_GPG_SIGNER) )
 
 /**
  * Structure to handle a variable in an rcfile
@@ -325,6 +327,8 @@ is_rc_param(const char *line, rc_file_param_t *param)
     char    val[MAX_LINE_LEN] = {0};
     char    *ndx;
 
+    memset(param, 0, sizeof(param));
+
     /* Fetch the variable and its value */
     if(sscanf(line, "%s %[^ ;\t\n\r#]", var, val) != 2)
     {