Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jarl
tor
Commits
3aaba3b1
Commit
3aaba3b1
authored
20 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
tell the user what time _they_ are too, when a cert is expired
svn:r2114
parent
a4509097
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/tortls.c
+5
-1
5 additions, 1 deletion
src/common/tortls.c
with
5 additions
and
1 deletion
src/common/tortls.c
+
5
−
1
View file @
3aaba3b1
...
...
@@ -619,6 +619,8 @@ static void log_cert_lifetime(X509 *cert, const char *problem)
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 @@ static void log_cert_lifetime(X509 *cert, const char *problem)
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment