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 uint64_t time_since_epoch()
const;
56 void set_to(
const std::string& t_spec,
ASN1_Tag);
57 bool passes_sanity_check()
const;
63 uint32_t m_minute = 0;
64 uint32_t m_second = 0;
73 bool BOTAN_PUBLIC_API(2,0) operator<=(const X509_Time&, const X509_Time&);
74 bool BOTAN_PUBLIC_API(2,0) operator>=(const X509_Time&, const X509_Time&);
75 bool BOTAN_PUBLIC_API(2,0) operator<(const X509_Time&, const X509_Time&);
76 bool BOTAN_PUBLIC_API(2,0) operator>(const X509_Time&, const X509_Time&);
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
std::string to_string(ErrorType type)
Convert an ErrorType to string.