Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
Legacy
gitolite
user
isis
Tor
Commits
6ba245f9
Unverified
Commit
6ba245f9
authored
Jul 27, 2017
by
Isis Lovecruft
Browse files
Options
Downloads
Patches
Plain Diff
fixup! fixup! fixup! routerkeys: Add cmdline option for learning signing key expiration.
Print the expiration to stdout.
parent
d01793e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/routerkeys.c
+15
-0
15 additions, 0 deletions
src/or/routerkeys.c
with
15 additions
and
0 deletions
src/or/routerkeys.c
+
15
−
0
View file @
6ba245f9
...
...
@@ -1136,6 +1136,20 @@ init_mock_ed_keys(const crypto_pk_t *rsa_identity_key)
#undef MAKECERT
#endif
/**
* Print the ISO8601-formated <b>expiration</b> for a certificate with
* some <b>description</b> to stdout.
*
* For example, for a signing certificate, this might print out:
* signing-cert-expiry: 2017-07-25 08:30:15 UTC
*/
static
void
print_cert_expiration
(
const
char
*
expiration
,
const
char
*
description
)
{
fprintf
(
stdout
,
"%s-cert-expiry: %s
\n
"
,
description
,
expiration
);
}
/**
* Log when a certificate, <b>cert</b>, with some <b>description</b> and
* stored in a file named <b>fname</b>, is going to expire.
...
...
@@ -1153,6 +1167,7 @@ log_ed_cert_expiration(const tor_cert_t *cert,
format_local_iso_time
(
expiration
,
cert
->
valid_until
);
log_notice
(
LD_OR
,
"The %s certificate stored in %s is valid until %s."
,
description
,
fname
,
expiration
);
print_cert_expiration
(
expiration
,
description
);
}
}
...
...
...
...
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
sign in
to comment