summaryrefslogtreecommitdiffstats
path: root/daemon/tls.h
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2016-11-12 22:22:08 +0100
committerOndřej Surý <ondrej@sury.org>2017-01-06 10:30:37 +0100
commit4c4ff26fe0bfd2f94a79fc167b1718a872405faf (patch)
treeee8339530b374b804d9ef2d97154e41e75eb8a9d /daemon/tls.h
parentMerge branch 'hints-empty-crash' into 'master' (diff)
downloadknot-resolver-4c4ff26fe0bfd2f94a79fc167b1718a872405faf.tar.xz
knot-resolver-4c4ff26fe0bfd2f94a79fc167b1718a872405faf.zip
Record expiration date of our certificate.
This can be useful for scheduling checks in the future, for logging when we're using an expired cert, requesting a new cert, refreshing an ephemeral cert, etc.
Diffstat (limited to 'daemon/tls.h')
-rw-r--r--daemon/tls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/tls.h b/daemon/tls.h
index 21671d4b..69c46bee 100644
--- a/daemon/tls.h
+++ b/daemon/tls.h
@@ -30,6 +30,7 @@ struct tls_credentials {
char *tls_cert;
char *tls_key;
gnutls_certificate_credentials_t credentials;
+ time_t valid_until;
};
/*! Toggle verbose logging from TLS context. */