From 5f39db70c069a95731a8a1f65547e3314d6b1f85 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 18 Nov 2021 20:44:14 +0100 Subject: 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. --- g10/options.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/options.h') 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; -- cgit v1.2.3