1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Remove duplicated code.

This commit is contained in:
Werner Koch 2009-03-16 09:44:44 +00:00
parent 91e5544e38
commit 94be7a4341
8 changed files with 35 additions and 25 deletions

View file

@ -147,19 +147,6 @@ gpgsm_print_time (estream_t fp, ksba_isotime_t t)
}
void
gpgsm_dump_time (ksba_isotime_t t)
{
if (!t || !*t)
log_printf (_("[none]"));
else
log_printf ("%.4s-%.2s-%.2s %.2s:%.2s:%s",
t, t+4, t+6, t+9, t+11, t+13);
}
void
gpgsm_dump_string (const char *string)
{
@ -207,11 +194,11 @@ gpgsm_dump_cert (const char *text, ksba_cert_t cert)
ksba_cert_get_validity (cert, 0, t);
log_debug (" notBefore: ");
gpgsm_dump_time (t);
dump_isotime (t);
log_printf ("\n");
ksba_cert_get_validity (cert, 1, t);
log_debug (" notAfter: ");
gpgsm_dump_time (t);
dump_isotime (t);
log_printf ("\n");
dn = ksba_cert_get_issuer (cert, 0);