mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
gpgsm: Always print info about certs-only message.
* sm/verify.c (gpgsm_verify): Always print info that a certs-only message has been processed. -- Prior to this patch the message was only printed if no data file has been given. Reported-by: Albrecht Dreß
This commit is contained in:
parent
483f2ba02e
commit
9589da97e2
@ -388,7 +388,6 @@ run_test_2 (void)
|
|||||||
|
|
||||||
FREEEXPR();
|
FREEEXPR();
|
||||||
ADDEXPR ("letters -f");
|
ADDEXPR ("letters -f");
|
||||||
recsel_dump (se);
|
|
||||||
if (!recsel_select (se, test_2_getval, NULL))
|
if (!recsel_select (se, test_2_getval, NULL))
|
||||||
fail (0, 0);
|
fail (0, 0);
|
||||||
FREEEXPR();
|
FREEEXPR();
|
||||||
|
10
sm/verify.c
10
sm/verify.c
@ -301,12 +301,14 @@ gpgsm_verify (ctrl_t ctrl, estream_t in_fp, estream_t data_fp,
|
|||||||
unsigned int pkalgoflags, verifyflags;
|
unsigned int pkalgoflags, verifyflags;
|
||||||
|
|
||||||
rc = ksba_cms_get_issuer_serial (cms, signer, &issuer, &serial);
|
rc = ksba_cms_get_issuer_serial (cms, signer, &issuer, &serial);
|
||||||
if (!signer && gpg_err_code (rc) == GPG_ERR_NO_DATA
|
if (!signer && gpg_err_code (rc) == GPG_ERR_NO_DATA)
|
||||||
&& !data_fp && is_detached)
|
|
||||||
{
|
{
|
||||||
log_info ("certs-only message accepted\n");
|
log_info ("certs-only message accepted\n");
|
||||||
rc = 0;
|
if (!data_fp && is_detached)
|
||||||
break;
|
{
|
||||||
|
rc = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user