mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* import.c (gpgsm_import): Print an STATUS_IMPORTED.
* gpgsm.c: --debug-no-path-validation does not take an argument.
This commit is contained in:
parent
d905375003
commit
738e6d8212
3 changed files with 15 additions and 2 deletions
|
@ -106,6 +106,10 @@ gpgsm_import (CTRL ctrl, int in_fd)
|
|||
{
|
||||
if (!keydb_store_cert (cert, 0))
|
||||
{
|
||||
char *fpr;
|
||||
fpr = gpgsm_get_fingerprint_hexstring (cert, GCRY_MD_SHA1);
|
||||
gpgsm_status2 (ctrl, STATUS_IMPORTED, fpr, " [X.509]", NULL);
|
||||
xfree (fpr);
|
||||
if (opt.verbose)
|
||||
log_info ("certificate imported\n");
|
||||
}
|
||||
|
@ -141,6 +145,10 @@ gpgsm_import (CTRL ctrl, int in_fd)
|
|||
{
|
||||
if (!keydb_store_cert (cert, 0))
|
||||
{
|
||||
char *fpr;
|
||||
fpr = gpgsm_get_fingerprint_hexstring (cert, GCRY_MD_SHA1);
|
||||
gpgsm_status2 (ctrl, STATUS_IMPORTED, fpr, " [X.509]", NULL);
|
||||
xfree (fpr);
|
||||
if (opt.verbose)
|
||||
log_info ("certificate imported\n");
|
||||
}
|
||||
|
@ -156,7 +164,6 @@ gpgsm_import (CTRL ctrl, int in_fd)
|
|||
rc = GNUPG_No_Data;
|
||||
}
|
||||
|
||||
|
||||
leave:
|
||||
ksba_cms_release (cms);
|
||||
ksba_cert_release (cert);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue