mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -698,7 +698,12 @@ learn_cb (void *opaque, const void *buffer, size_t length)
|
|||
}
|
||||
|
||||
rc = gpgsm_basic_cert_check (cert);
|
||||
if (rc)
|
||||
if (rc == GNUPG_Missing_Certificate)
|
||||
{ /* For later use we store it in the ephemeral database. */
|
||||
log_info ("issuer certificate missing - storing as ephemeral\n");
|
||||
keydb_store_cert (cert, 1, NULL);
|
||||
}
|
||||
else if (rc)
|
||||
log_error ("invalid certificate: %s\n", gnupg_strerror (rc));
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue