mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* call-agent.c (learn_cb): Special treatment when the issuer
certificate is missing.
This commit is contained in:
parent
fd2f1c8aa3
commit
a8e9b350c0
12 changed files with 69 additions and 58 deletions
|
@ -417,7 +417,7 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
|
|||
|
||||
if (DBG_X509)
|
||||
log_debug ("signature okay - checking certs\n");
|
||||
rc = gpgsm_validate_path (ctrl, cert, &keyexptime);
|
||||
rc = gpgsm_validate_chain (ctrl, cert, &keyexptime);
|
||||
if (rc == GNUPG_Certificate_Expired)
|
||||
{
|
||||
gpgsm_status (ctrl, STATUS_EXPKEYSIG, NULL);
|
||||
|
@ -440,9 +440,9 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
|
|||
xfree (buf);
|
||||
}
|
||||
|
||||
if (rc) /* of validate_path */
|
||||
if (rc) /* of validate_chain */
|
||||
{
|
||||
log_error ("invalid certification path: %s\n", gnupg_strerror (rc));
|
||||
log_error ("invalid certification chain: %s\n", gnupg_strerror (rc));
|
||||
if (rc == GNUPG_Bad_Certificate_Path
|
||||
|| rc == GNUPG_Bad_Certificate
|
||||
|| rc == GNUPG_Bad_CA_Certificate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue