summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/x509.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-01-03 09:24:03 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-01-03 09:24:03 +0000
commitf1b80958feeca33866c6485f0e0503551c685713 (patch)
tree596bfc48f96460b811b91a72613cc5c374d32eaf /sbin/isakmpd/x509.c
parentb73ad98ab184d778427b6f5e603fb9df18878950 (diff)
strftime format fixes. From Christo Butcher <christo@fox-it.com>.
Diffstat (limited to 'sbin/isakmpd/x509.c')
-rw-r--r--sbin/isakmpd/x509.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c
index dec99c32404..44b8dfe5e48 100644
--- a/sbin/isakmpd/x509.c
+++ b/sbin/isakmpd/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.65 2001/08/25 22:17:13 niklas Exp $ */
+/* $OpenBSD: x509.c,v 1.66 2002/01/03 09:24:02 ho Exp $ */
/* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */
/*
@@ -239,7 +239,7 @@ x509_generate_kn (int id, X509 *cert)
(tm->type != V_ASN1_UTCTIME && tm->type != V_ASN1_GENERALIZEDTIME))
{
tt = time (0);
- strftime (before, 14, "%G%m%d%H%M%S", localtime (&tt));
+ strftime (before, 14, "%Y%m%d%H%M%S", localtime (&tt));
timecomp = "LocalTimeOfDay";
}
else
@@ -355,7 +355,7 @@ x509_generate_kn (int id, X509 *cert)
&& (tm->type != V_ASN1_UTCTIME && tm->type != V_ASN1_GENERALIZEDTIME))
{
tt = time (0);
- strftime (after, 14, "%G%m%d%H%M%S", localtime (&tt));
+ strftime (after, 14, "%Y%m%d%H%M%S", localtime (&tt));
timecomp2 = "LocalTimeOfDay";
}
else