mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Comment changes.
Changed --learn-card.
This commit is contained in:
parent
f64a746f47
commit
2c7a03d54b
4 changed files with 13 additions and 7 deletions
|
@ -875,13 +875,11 @@ learn_cb (void *opaque, const void *buffer, size_t length)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* We do not store a certifciate with missing issuers as ephemeral
|
||||
because we can assume that the --learn-card command has been used
|
||||
on purpose. */
|
||||
rc = gpgsm_basic_cert_check (parm->ctrl, cert);
|
||||
if (gpg_err_code (rc) == GPG_ERR_MISSING_CERT)
|
||||
{ /* 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)
|
||||
if (rc && gpg_err_code (rc) != GPG_ERR_MISSING_CERT)
|
||||
log_error ("invalid certificate: %s\n", gpg_strerror (rc));
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue