Botan
1.10.9
|
#include <asn1_obj.h>
Public Member Functions | |
std::string | as_string () const |
s32bit | cmp (const X509_Time &) const |
void | decode_from (class BER_Decoder &) |
void | encode_into (class DER_Encoder &) const |
std::string | readable_string () const |
void | set_to (const std::string &) |
void | set_to (const std::string &, ASN1_Tag) |
bool | time_is_set () const |
X509_Time (u64bit) | |
X509_Time (const std::string &="") | |
X509_Time (const std::string &, ASN1_Tag) | |
X.509 Time
Definition at line 41 of file asn1_obj.h.
Botan::X509_Time::X509_Time | ( | u64bit | timer | ) |
Definition at line 28 of file asn1_tm.cpp.
References Botan::calendar_value(), Botan::calendar_point::day, Botan::GENERALIZED_TIME, Botan::calendar_point::hour, Botan::calendar_point::minutes, Botan::calendar_point::month, Botan::calendar_point::seconds, Botan::UTC_TIME, and Botan::calendar_point::year.
Botan::X509_Time::X509_Time | ( | const std::string & | time_str = "" | ) |
Botan::X509_Time::X509_Time | ( | const std::string & | t_spec, |
ASN1_Tag | t | ||
) |
std::string Botan::X509_Time::as_string | ( | ) | const |
Definition at line 180 of file asn1_tm.cpp.
References Botan::GENERALIZED_TIME, readable_string(), time_is_set(), Botan::to_string(), and Botan::UTC_TIME.
Referenced by encode_into().
Definition at line 250 of file asn1_tm.cpp.
References time_is_set().
Referenced by Botan::operator!=(), Botan::operator<(), Botan::operator<=(), Botan::operator==(), Botan::operator>(), and Botan::operator>=().
|
virtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 167 of file asn1_tm.cpp.
References Botan::BER_Decoder::get_next_object(), Botan::LATIN1_CHARSET, Botan::LOCAL_CHARSET, set_to(), Botan::ASN1::to_string(), Botan::Charset::transcode(), and Botan::BER_Object::type_tag.
|
virtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 153 of file asn1_tm.cpp.
References Botan::DER_Encoder::add_object(), as_string(), Botan::GENERALIZED_TIME, Botan::LATIN1_CHARSET, Botan::LOCAL_CHARSET, Botan::Charset::transcode(), Botan::UNIVERSAL, and Botan::UTC_TIME.
std::string Botan::X509_Time::readable_string | ( | ) | const |
Definition at line 216 of file asn1_tm.cpp.
References time_is_set(), and Botan::to_string().
Referenced by as_string().
void Botan::X509_Time::set_to | ( | const std::string & | time_str | ) |
Definition at line 53 of file asn1_tm.cpp.
References Botan::GENERALIZED_TIME, Botan::Charset::is_digit(), Botan::NO_OBJECT, Botan::to_u32bit(), and Botan::UTC_TIME.
Referenced by decode_from(), and X509_Time().
void Botan::X509_Time::set_to | ( | const std::string & | t_spec, |
ASN1_Tag | spec_tag | ||
) |
Definition at line 98 of file asn1_tm.cpp.
References Botan::GENERALIZED_TIME, Botan::to_string(), Botan::to_u32bit(), and Botan::UTC_TIME.
bool Botan::X509_Time::time_is_set | ( | ) | const |
Definition at line 208 of file asn1_tm.cpp.
Referenced by as_string(), cmp(), and readable_string().