mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Print the signer's UID during verification.
* g10/parse-packet.c (parse_signature): Sanitize the value stored in SIGNERS_UID. * g10/mainproc.c (issuer_fpr_string): New. (check_sig_and_print): Print the signers' UID. Print the issuer fingerprint in --rfc4880bis mode. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
f2ea7e539c
commit
ed5c1b0b8a
3 changed files with 33 additions and 7 deletions
|
@ -1936,15 +1936,12 @@ parse_signature (IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_SIGNERS_UID, &len);
|
||||
if (p && len)
|
||||
{
|
||||
sig->signers_uid = xtrymalloc (len+1);
|
||||
sig->signers_uid = try_make_printable_string (p, len, 0);
|
||||
if (!sig->signers_uid)
|
||||
{
|
||||
rc = gpg_error_from_syserror ();
|
||||
goto leave;
|
||||
}
|
||||
/* Note that we don't care about binary zeroes in the value. */
|
||||
memcpy (sig->signers_uid, p, len);
|
||||
sig->signers_uid[len] = 0;
|
||||
}
|
||||
|
||||
p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_NOTATION, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue