mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Started to implement the audit log feature.
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
This commit is contained in:
parent
093b25c996
commit
55ba204bfa
103 changed files with 17892 additions and 15330 deletions
|
@ -242,6 +242,37 @@ gpgsm_dump_cert (const char *text, ksba_cert_t cert)
|
|||
}
|
||||
|
||||
|
||||
/* Return a new string holding the format serial number and issuer
|
||||
("#SN/issuer"). No filtering on invalid characters is done.
|
||||
Caller must release the string. On memory failure NULL is
|
||||
returned. */
|
||||
char *
|
||||
gpgsm_format_sn_issuer (ksba_sexp_t sn, const char *issuer)
|
||||
{
|
||||
char *p, *p1;
|
||||
|
||||
if (sn && issuer)
|
||||
{
|
||||
p1 = gpgsm_format_serial (sn);
|
||||
if (!p1)
|
||||
p = xtrystrdup ("[invalid SN]");
|
||||
else
|
||||
{
|
||||
p = xtrymalloc (strlen (p1) + strlen (issuer) + 2 + 1);
|
||||
if (p)
|
||||
{
|
||||
*p = '#';
|
||||
strcpy (stpcpy (stpcpy (p+1, p1),"/"), issuer);
|
||||
}
|
||||
xfree (p1);
|
||||
}
|
||||
}
|
||||
else
|
||||
p = xtrystrdup ("[invalid SN/issuer]");
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
/* Log the certificate's name in "#SN/ISSUERDN" format along with
|
||||
TEXT. */
|
||||
void
|
||||
|
@ -272,6 +303,8 @@ gpgsm_cert_log_name (const char *text, ksba_cert_t cert)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* helper for the rfc2253 string parser */
|
||||
static const unsigned char *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue