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?",
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)