aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-04-27 11:00:42 +0100
committerGravatar Sadie Powell2023-04-27 11:00:42 +0100
commit3c056d489c39d90402fd8b40778ce91505d95cbf (patch)
tree2c52e50fdf9bd09ee61a69333ccbc13e75d6cd3f /include/modules
parentAllow using rmode on a prefix char and mode name. (diff)
parentWhen building the PACKAGE project we don't need to specify a target. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/ssl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index 747c468e5..004f9c350 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -50,6 +50,9 @@ public:
bool invalid = true;
bool unknownsigner = true;
bool revoked = false;
+ time_t activation = 0;
+ time_t expiration = 0;
+
/** Get certificate distinguished name
* @return Certificate DN
@@ -137,6 +140,22 @@ public:
{
return IsUsable() && trusted && !unknownsigner;
}
+
+ /** Retrieves the client certificate activation time.
+ * @param The time the client certificate was activated or 0 on error.
+ */
+ time_t GetActivationTime() const
+ {
+ return activation;
+ }
+
+ /** Retrieves the client certificate expiration time.
+ * @param The time the client certificate will expire or 0 on error.
+ */
+ time_t GetExpirationTime() const
+ {
+ return expiration;
+ }
};
/** I/O hook provider for TLS modules. */