diff options
author | Werner Koch <[email protected]> | 2021-11-18 19:44:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-11-18 19:49:37 +0000 |
commit | 5f39db70c069a95731a8a1f65547e3314d6b1f85 (patch) | |
tree | 542a8ac70cc32c4fc1de79fa24cedd2fbd7a759d /g10/options.h | |
parent | gpgconf: --show-configs now prints a bunch of Registry entries. (diff) | |
download | gnupg-5f39db70c069a95731a8a1f65547e3314d6b1f85.tar.gz gnupg-5f39db70c069a95731a8a1f65547e3314d6b1f85.zip |
gpg,gpgsm: Add option --min-rsa-length.
* common/compliance.c (min_compliant_rsa_length): New.
(gnupg_pk_is_compliant): Take in account.
(gnupg_pk_is_allowed): Ditto.
(gnupg_set_compliance_extra_info): New.
* g10/gpg.c (oMinRSALength): New.
(opts): Add --min-rsa-length.
(main): Set value.
* g10/options.h (opt): Add field min_rsa_length.
* sm/gpgsm.c (oMinRSALength): New.
(opts): Add --min-rsa-length.
(main): Set value.
* sm/gpgsm.h (opt): Add field min_rsa_length.
Diffstat (limited to 'g10/options.h')
-rw-r--r-- | g10/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |