1
0
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:
Werner Koch 2025-05-06 13:47:51 +02:00
parent 483f2ba02e
commit 9589da97e2
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 6 additions and 5 deletions

View File

@ -388,7 +388,6 @@ run_test_2 (void)
FREEEXPR();
ADDEXPR ("letters -f");
recsel_dump (se);
if (!recsel_select (se, test_2_getval, NULL))
fail (0, 0);
FREEEXPR();

View File

@ -301,12 +301,14 @@ gpgsm_verify (ctrl_t ctrl, estream_t in_fp, estream_t data_fp,
unsigned int pkalgoflags, verifyflags;
rc = ksba_cms_get_issuer_serial (cms, signer, &issuer, &serial);
if (!signer && gpg_err_code (rc) == GPG_ERR_NO_DATA
&& !data_fp && is_detached)
if (!signer && gpg_err_code (rc) == GPG_ERR_NO_DATA)
{
log_info ("certs-only message accepted\n");
rc = 0;
break;
if (!data_fp && is_detached)
{
rc = 0;
break;
}
}
if (rc)
{