diff options
Diffstat (limited to 'g10')
-rw-r--r-- | g10/gpg.c | 5 | ||||
-rw-r--r-- | g10/options.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -248,6 +248,7 @@ enum cmd_and_opt_values oPGP7, oPGP8, oDE_VS, + oMinRSALength, oRFC2440Text, oNoRFC2440Text, oCipherAlgo, @@ -629,6 +630,7 @@ static gpgrt_opt_t opts[] = { ARGPARSE_s_n (oPGP7, "pgp7", "@"), ARGPARSE_s_n (oPGP8, "pgp8", "@"), ARGPARSE_s_s (oDefaultNewKeyAlgo, "default-new-key-algo", "@"), + ARGPARSE_p_u (oMinRSALength, "min-rsa-length", "@"), #ifndef NO_TRUST_MODELS ARGPARSE_s_n (oAlwaysTrust, "always-trust", "@"), #endif @@ -3009,6 +3011,8 @@ main (int argc, char **argv) set_compliance_option (pargs.r_opt); break; + case oMinRSALength: opt.min_rsa_length = pargs.r.ret_ulong; break; + case oRFC2440Text: opt.rfc2440_text=1; break; case oNoRFC2440Text: opt.rfc2440_text=0; break; @@ -3884,6 +3888,7 @@ main (int argc, char **argv) } set_debug (debug_level); + gnupg_set_compliance_extra_info (opt.min_rsa_length); if (DBG_CLOCK) log_clock ("start"); diff --git a/g10/options.h b/g10/options.h index 2ad86ae42..8df463ed4 100644 --- a/g10/options.h +++ b/g10/options.h @@ -224,6 +224,7 @@ struct unsigned int screen_lines; byte *show_subpackets; int rfc2440_text; + unsigned int min_rsa_length; /* Used for compliance checks. */ /* If true, let write failures on the status-fd exit the process. */ int exit_on_status_write_error; |