mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fixed a trustlist update problem.
Pretty format the marktrusted pinentry prompt.
This commit is contained in:
parent
ceb42db4dd
commit
6e63e54b00
4 changed files with 105 additions and 36 deletions
|
@ -1,7 +1,11 @@
|
|||
2009-03-26 Werner Koch <wk@g10code.com>
|
||||
|
||||
* call-agent.c (gpgsm_agent_marktrusted): Format the issuer name.
|
||||
|
||||
2009-03-25 Werner Koch <wk@g10code.com>
|
||||
|
||||
* decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY
|
||||
stati. Fixes bug#1020.
|
||||
* decrypt.c (gpgsm_decrypt): Print ENC_TO and NO_SECKEY stati.
|
||||
Fixes bug#1020.
|
||||
* fingerprint.c (gpgsm_get_short_fingerprint): Add arg R_HIGH and
|
||||
change all callers.
|
||||
|
||||
|
|
|
@ -612,7 +612,7 @@ int
|
|||
gpgsm_agent_marktrusted (ctrl_t ctrl, ksba_cert_t cert)
|
||||
{
|
||||
int rc;
|
||||
char *fpr, *dn;
|
||||
char *fpr, *dn, *dnfmt;
|
||||
char line[ASSUAN_LINELENGTH];
|
||||
|
||||
rc = start_agent (ctrl);
|
||||
|
@ -632,9 +632,13 @@ gpgsm_agent_marktrusted (ctrl_t ctrl, ksba_cert_t cert)
|
|||
xfree (fpr);
|
||||
return gpg_error (GPG_ERR_GENERAL);
|
||||
}
|
||||
snprintf (line, DIM(line)-1, "MARKTRUSTED %s S %s", fpr, dn);
|
||||
dnfmt = gpgsm_format_name2 (dn, 0);
|
||||
xfree (dn);
|
||||
if (!dnfmt)
|
||||
return gpg_error_from_syserror ();
|
||||
snprintf (line, DIM(line)-1, "MARKTRUSTED %s S %s", fpr, dnfmt);
|
||||
line[DIM(line)-1] = 0;
|
||||
ksba_free (dn);
|
||||
ksba_free (dnfmt);
|
||||
xfree (fpr);
|
||||
|
||||
rc = assuan_transact (agent_ctx, line, NULL, NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue