8 #ifndef BOTAN_ASN1_TIME_H__
9 #define BOTAN_ASN1_TIME_H__
11 #include <botan/asn1_obj.h>
32 std::string readable_string()
const;
35 bool time_is_set()
const;
38 int32_t cmp(
const X509_Time& other)
const;
44 explicit X509_Time(
const std::chrono::system_clock::time_point& time);
50 std::chrono::system_clock::time_point to_std_timepoint()
const;
53 void set_to(
const std::string& t_spec,
ASN1_Tag);
54 bool passes_sanity_check()
const;
60 uint32_t m_minute = 0;
61 uint32_t m_second = 0;
bool operator>=(const X509_Time &t1, const X509_Time &t2)
bool operator>(const X509_Time &t1, const X509_Time &t2)
bool operator!=(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator==(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator<(const OID &a, const OID &b)
std::string to_string(const secure_vector< uint8_t > &bytes)
bool operator<=(const X509_Time &t1, const X509_Time &t2)