aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-03-19 19:38:25 +0000
committerWerner Koch <[email protected]>2015-03-19 19:38:25 +0000
commite7ddaad0fd2c8774a1d3367adfaa68014eaf65de (patch)
tree23bec7f1b16be540169ca3fca3a17b7348a21668
parentagent: Compute correct MPI length header for protected ECC keys. (diff)
downloadgnupg-e7ddaad0fd2c8774a1d3367adfaa68014eaf65de.tar.gz
gnupg-e7ddaad0fd2c8774a1d3367adfaa68014eaf65de.zip
gpg: Emit status line NEWSIG before signature verification starts.
* g10/mainproc.c (check_sig_and_print): Emit STATUS_NEWSIG. -- gpgsm does this for a long time but somehow it never made it into gpg. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--doc/DETAILS6
-rw-r--r--g10/mainproc.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/DETAILS b/doc/DETAILS
index 4b8249706..61ad7d801 100644
--- a/doc/DETAILS
+++ b/doc/DETAILS
@@ -338,9 +338,9 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB:
** General status codes
*** NEWSIG
- May be issued right before a signature verification starts. This
- is useful to define a context for parsing ERROR status messages.
- No arguments are currently defined.
+ Is issued right before a signature verification starts. This is
+ useful to define a context for parsing ERROR status messages. No
+ arguments are currently defined.
*** GOODSIG <long_keyid_or_fpr> <username>
The signature with the keyid is good. For each signature only one
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 0ae916852..0f6ba2b32 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -1670,6 +1670,8 @@ check_sig_and_print (CTX c, kbnode_t node)
}
}
+ write_status_text (STATUS_NEWSIG, NULL);
+
astr = openpgp_pk_algo_name ( sig->pubkey_algo );
if (keystrlen () > 8)
{