mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -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