diff options
| author | 2023-04-27 11:00:42 +0100 | |
|---|---|---|
| committer | 2023-04-27 11:00:42 +0100 | |
| commit | 3c056d489c39d90402fd8b40778ce91505d95cbf (patch) | |
| tree | 2c52e50fdf9bd09ee61a69333ccbc13e75d6cd3f /include/modules | |
| parent | Allow using rmode on a prefix char and mode name. (diff) | |
| parent | When 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.h | 19 |
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. */ |
