aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-04-27 20:22:09 +0000
committerDavid Shaw <[email protected]>2003-04-27 20:22:09 +0000
commit9f6fa94486134b211a37c62bbe115587dd689b67 (patch)
treec52a326280297baba57ca3a2c03d0a8d40103d23 /g10/parse-packet.c
parent* sign.c (do_sign): Show the hash used when making a signature in verbose (diff)
downloadgnupg-9f6fa94486134b211a37c62bbe115587dd689b67.tar.gz
gnupg-9f6fa94486134b211a37c62bbe115587dd689b67.zip
* g10.c (main): Add --no-textmode.
* export.c (do_export_stream), keyedit.c (show_key_with_all_names, menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c (show_photos), sign.c (mk_notation_and_policy), trustdb.c (get_validity, reset_trust_records, validate_keys): Make some strings translatable. * mainproc.c (check_sig_and_print): Show digest algorithm and sig class when verifying a sig with --verbose on, and add version, pk and hash algorithms and sig class to VALIDSIG. * parse-packet.c (enum_sig_subpkt): Make a warning message a --verbose warning message since we don't need to warn every time we see an unknown critical (we only need to invalidate the signature). * trustdb.c (init_trustdb): Check the trustdb options even with TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
Diffstat (limited to '')
-rw-r--r--g10/parse-packet.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 7e390ae55..7b502067a 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -1070,13 +1070,15 @@ enum_sig_subpkt( const subpktarea_t *pktbuf, sigsubpkttype_t reqtype,
if( *critical ) {
if( n-1 > buflen+1 )
goto too_short;
- if( !can_handle_critical(buffer+1, n-1, type ) ) {
- log_info(_("subpacket of type %d has critical bit set\n"),
- type);
+ if( !can_handle_critical(buffer+1, n-1, type ) )
+ {
+ if(opt.verbose)
+ log_info(_("subpacket of type %d has "
+ "critical bit set\n"),type);
if( start )
- *start = seq;
+ *start = seq;
return NULL; /* this is an error */
- }
+ }
}
}
else if( reqtype < 0 ) /* list packets */