aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-11-07 09:36:17 +0000
committerWerner Koch <[email protected]>2019-11-07 09:36:17 +0000
commite624c41dbafd33af82c1153188d14de72fcc7cd8 (patch)
tree2c0af29b948eeebbdc3667d7859f4f01417c03fb /g10/main.h
parentgpg: Print rfc4880bis note only in verbose mode. (diff)
downloadgnupg-e624c41dbafd33af82c1153188d14de72fcc7cd8.tar.gz
gnupg-e624c41dbafd33af82c1153188d14de72fcc7cd8.zip
gpg: Add option --allow-weak-key-signatures.
* g10/gpg.c (oAllowWeakKeySignatures): New. (opts): Add --allow-weak-key-signatures. (main): Set it. * g10/options.h (struct opt): Add flags.allow_weak_key_signatures. * g10/misc.c (print_sha1_keysig_rejected_note): New. * g10/sig-check.c (check_signature_over_key_or_uid): Print note and act on new option. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h
index 981315a4a..2001c8646 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -101,6 +101,7 @@ void print_pubkey_algo_note (pubkey_algo_t algo);
void print_cipher_algo_note (cipher_algo_t algo);
void print_digest_algo_note (digest_algo_t algo);
void print_digest_rejected_note (enum gcry_md_algos algo);
+void print_sha1_keysig_rejected_note (void);
void print_reported_error (gpg_error_t err, gpg_err_code_t skip_if_ec);
void print_further_info (const char *format, ...) GPGRT_ATTR_PRINTF(1,2);
void additional_weak_digest (const char* digestname);