diff options
author | Werner Koch <wk@gnupg.org> | 2009-03-16 10:44:44 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-03-16 10:44:44 +0100 |
commit | 94be7a43417f0a9b48b2e220a308e65d71b8c342 (patch) | |
tree | 57bd8ef5cb8a6ff5b103b7e27f20068275d6d561 /sm/certchain.c | |
parent | * gpg.c (my_strusage): gpg2 and gpgv2 (not gpg and gpgv). (diff) | |
download | gnupg2-94be7a43417f0a9b48b2e220a308e65d71b8c342.tar.xz gnupg2-94be7a43417f0a9b48b2e220a308e65d71b8c342.zip |
Remove duplicated code.
Diffstat (limited to 'sm/certchain.c')
-rw-r--r-- | sm/certchain.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sm/certchain.c b/sm/certchain.c index fbff7c001..ddf4ece8f 100644 --- a/sm/certchain.c +++ b/sm/certchain.c @@ -979,7 +979,7 @@ check_validity_period (ksba_isotime_t current_time, if (!listmode) { log_info (" (valid from "); - gpgsm_dump_time (not_before); + dump_isotime (not_before); log_printf (")\n"); } return gpg_error (GPG_ERR_CERT_TOO_YOUNG); @@ -994,7 +994,7 @@ check_validity_period (ksba_isotime_t current_time, if (!listmode) { log_info (" (expired at "); - gpgsm_dump_time (not_after); + dump_isotime (not_after); log_printf (")\n"); } if (opt.ignore_expiration) @@ -1043,9 +1043,9 @@ check_validity_period_cm (ksba_isotime_t current_time, do_list (1, listmode, listfp, _("certificate with invalid validity")); log_info (" (valid from "); - gpgsm_dump_time (not_before); + dump_isotime (not_before); log_printf (" expired at "); - gpgsm_dump_time (not_after); + dump_isotime (not_after); log_printf (")\n"); return gpg_error (GPG_ERR_BAD_CERT); } @@ -1064,7 +1064,7 @@ check_validity_period_cm (ksba_isotime_t current_time, if (!listmode) { log_info (" (valid from "); - gpgsm_dump_time (not_before); + dump_isotime (not_before); log_printf (")\n"); } return gpg_error (GPG_ERR_CERT_TOO_YOUNG); @@ -1087,13 +1087,13 @@ check_validity_period_cm (ksba_isotime_t current_time, { log_info (depth== 0? _(" ( signature created at ") : /* */ _(" (certificate created at ") ); - gpgsm_dump_time (check_time); + dump_isotime (check_time); log_printf (")\n"); log_info (depth==0? _(" (certificate valid from ") : /* */ _(" ( issuer valid from ") ); - gpgsm_dump_time (not_before); + dump_isotime (not_before); log_info (" to "); - gpgsm_dump_time (not_after); + dump_isotime (not_after); log_printf (")\n"); } if (opt.ignore_expiration) |