mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
the fingerprint.
This commit is contained in:
parent
6041ae63f3
commit
6aaa48054b
@ -1,5 +1,8 @@
|
|||||||
2002-07-02 Werner Koch <wk@gnupg.org>
|
2002-07-02 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
|
||||||
|
the fingerprint.
|
||||||
|
|
||||||
* certpath.c (check_cert_policy): Don't use log_error to print a
|
* certpath.c (check_cert_policy): Don't use log_error to print a
|
||||||
warning.
|
warning.
|
||||||
|
|
||||||
|
12
sm/verify.c
12
sm/verify.c
@ -351,9 +351,13 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
|
|||||||
|| gcry_md_get_algo_dlen (algo) != msgdigestlen
|
|| gcry_md_get_algo_dlen (algo) != msgdigestlen
|
||||||
|| !s || memcmp (s, msgdigest, msgdigestlen) )
|
|| !s || memcmp (s, msgdigest, msgdigestlen) )
|
||||||
{
|
{
|
||||||
|
char *fpr;
|
||||||
|
|
||||||
log_error ("invalid signature: message digest attribute "
|
log_error ("invalid signature: message digest attribute "
|
||||||
"does not match calculated one\n");
|
"does not match calculated one\n");
|
||||||
gpgsm_status (ctrl, STATUS_BADSIG, NULL);
|
fpr = gpgsm_get_fingerprint_hexstring (cert, GCRY_MD_SHA1);
|
||||||
|
gpgsm_status (ctrl, STATUS_BADSIG, fpr);
|
||||||
|
xfree (fpr);
|
||||||
goto next_signer;
|
goto next_signer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,8 +389,12 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
|
|||||||
|
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
|
char *fpr;
|
||||||
|
|
||||||
log_error ("invalid signature: %s\n", gnupg_strerror (rc));
|
log_error ("invalid signature: %s\n", gnupg_strerror (rc));
|
||||||
gpgsm_status (ctrl, STATUS_BADSIG, NULL);
|
fpr = gpgsm_get_fingerprint_hexstring (cert, GCRY_MD_SHA1);
|
||||||
|
gpgsm_status (ctrl, STATUS_BADSIG, fpr);
|
||||||
|
xfree (fpr);
|
||||||
goto next_signer;
|
goto next_signer;
|
||||||
}
|
}
|
||||||
rc = gpgsm_cert_use_verify_p (cert); /*(this displays an info message)*/
|
rc = gpgsm_cert_use_verify_p (cert); /*(this displays an info message)*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user