summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-10-23 04:16:23 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-10-23 04:16:23 +0000
commitbba63190d1bd9fdcbf343dd0b073ffa3847c7a78 (patch)
treecfa5e5db1f80992bf6f8b6665e087656564f7236 /usr.bin
parentaacbf9b73562fede2e4293938fc93f0b8894dc57 (diff)
Make code match documentation: relative-specified certificate expiry time
should be relative to current time and not the validity start time. Reported by Petr Lautrbach; ok deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index e48522b1c0e..871289b155f 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.234 2013/09/02 22:00:34 deraadt Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.235 2013/10/23 04:16:22 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1726,7 +1726,7 @@ parse_cert_times(char *timespec)
cert_valid_from = parse_absolute_time(from);
if (*to == '-' || *to == '+')
- cert_valid_to = parse_relative_time(to, cert_valid_from);
+ cert_valid_to = parse_relative_time(to, now);
else
cert_valid_to = parse_absolute_time(to);