[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] tell the user what time _they_ are too, when a cert is expi...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] tell the user what time _they_ are too, when a cert is expi...
- From: arma@seul.org (Roger Dingledine)
- Date: Thu, 22 Jul 2004 19:06:30 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 22 Jul 2004 19:06:37 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
tortls.c
Log Message:
tell the user what time _they_ are too, when a cert is expired
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- tortls.c 22 Jul 2004 04:53:34 -0000 1.63
+++ tortls.c 22 Jul 2004 23:06:28 -0000 1.64
@@ -619,6 +619,8 @@
BIO *bio = NULL;
BUF_MEM *buf;
char *s1=NULL, *s2=NULL;
+ char mytime[33];
+ time_t now = time(NULL);
if (problem)
log_fn(LOG_WARN,"Certificate %s: is your system clock set incorrectly?",
@@ -642,7 +644,9 @@
BIO_get_mem_ptr(bio, &buf);
s2 = tor_strndup(buf->data, buf->length);
- log_fn(LOG_WARN, " (certificate lifetime runs from %s through %s)",s1,s2);
+ strftime(mytime, 32, "%b %d %H:%M:%S %Y GMT", gmtime(&now));
+
+ log_fn(LOG_WARN, "(certificate lifetime runs from %s through %s. Your time is %s.)",s1,s2,mytime);
end:
if (bio)