diff options
Diffstat (limited to 'src/lib/asn1/asn1_time.h')
-rw-r--r-- | src/lib/asn1/asn1_time.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/asn1/asn1_time.h b/src/lib/asn1/asn1_time.h index ba5b84838..ee30221ee 100644 --- a/src/lib/asn1/asn1_time.h +++ b/src/lib/asn1/asn1_time.h @@ -46,6 +46,9 @@ class BOTAN_DLL X509_Time final : public ASN1_Object /// Create an X509_Time from string X509_Time(const std::string& t_spec, ASN1_Tag tag); + /// Returns a STL timepoint object + std::chrono::system_clock::time_point to_std_timepoint() const; + private: void set_to(const std::string& t_spec, ASN1_Tag); bool passes_sanity_check() const; |