diff options
author | Werner Koch <wk@gnupg.org> | 1999-03-17 13:13:04 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-03-17 13:13:04 +0100 |
commit | 8d255ff264b519faa056a1041cbf1eb969c23206 (patch) | |
tree | f7a2a55452b20d3e01a6067209430f0045d4c241 /g10/mainproc.c | |
parent | See ChangeLog: Sun Mar 14 19:34:36 CET 1999 Werner Koch (diff) | |
download | gnupg2-8d255ff264b519faa056a1041cbf1eb969c23206.tar.xz gnupg2-8d255ff264b519faa056a1041cbf1eb969c23206.zip |
See ChangeLog: Wed Mar 17 13:09:03 CET 1999 Werner Koch
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index c41e72352..dd91fcc5e 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -182,6 +182,14 @@ proc_pubkey_enc( CTX c, PACKET *pkt ) * function to check it. */ if( opt.verbose ) log_info(_("public key is %08lX\n"), (ulong)enc->keyid[1] ); + + if( is_status_enabled() ) { + char buf[50]; + sprintf(buf, "%08lX%08lX", (ulong)enc->keyid[0], (ulong)enc->keyid[1]); + write_status_text( STATUS_ENC_TO, buf ); + } + + if( is_ELGAMAL(enc->pubkey_algo) || enc->pubkey_algo == PUBKEY_ALGO_DSA || is_RSA(enc->pubkey_algo) ) { @@ -914,7 +922,11 @@ check_sig_and_print( CTX c, KBNODE node ) g10_exit(1); } else { - write_status( STATUS_ERRSIG ); + char buf[50]; + sprintf(buf, "%08lX%08lX %d", + (ulong)sig->keyid[0], (ulong)sig->keyid[1], + sig->pubkey_algo ); + write_status_text( STATUS_ERRSIG, buf ); log_error(_("Can't check signature: %s\n"), g10_errstr(rc) ); } return rc; |