Botan
1.11.15
|
#include <ocsp_types.h>
Public Member Functions | |
size_t | cert_status () const |
const CertID & | certid () const |
void | decode_from (class BER_Decoder &from) override |
void | encode_into (class DER_Encoder &to) const override |
X509_Time | next_update () const |
X509_Time | this_update () const |
Definition at line 42 of file ocsp_types.h.
size_t Botan::OCSP::SingleResponse::cert_status | ( | ) | const [inline] |
const CertID& Botan::OCSP::SingleResponse::certid | ( | ) | const [inline] |
Definition at line 45 of file ocsp_types.h.
{ return m_certid; }
void Botan::OCSP::SingleResponse::decode_from | ( | class BER_Decoder & | from | ) | [override, virtual] |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 99 of file ocsp_types.cpp.
References cert_status(), Botan::CONSTRUCTED, Botan::CONTEXT_SPECIFIC, Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_optional(), Botan::BER_Decoder::end_cons(), Botan::BER_Decoder::get_next(), Botan::SEQUENCE, Botan::BER_Decoder::start_cons(), and Botan::BER_Object::type_tag.
{ BER_Object cert_status; Extensions extensions; from.start_cons(SEQUENCE) .decode(m_certid) .get_next(cert_status) .decode(m_thisupdate) .decode_optional(m_nextupdate, ASN1_Tag(0), ASN1_Tag(CONTEXT_SPECIFIC | CONSTRUCTED)) .decode_optional(extensions, ASN1_Tag(1), ASN1_Tag(CONTEXT_SPECIFIC | CONSTRUCTED)) .end_cons(); m_cert_status = cert_status.type_tag; }
void Botan::OCSP::SingleResponse::encode_into | ( | class DER_Encoder & | to | ) | const [override, virtual] |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 94 of file ocsp_types.cpp.
{ throw std::runtime_error("Not implemented (SingleResponse::encode_into)"); }
X509_Time Botan::OCSP::SingleResponse::next_update | ( | ) | const [inline] |
Definition at line 51 of file ocsp_types.h.
{ return m_nextupdate; }
X509_Time Botan::OCSP::SingleResponse::this_update | ( | ) | const [inline] |
Definition at line 49 of file ocsp_types.h.
{ return m_thisupdate; }