Botan  1.11.15
Public Member Functions
Botan::OCSP::SingleResponse Class Reference

#include <ocsp_types.h>

Inheritance diagram for Botan::OCSP::SingleResponse:
Botan::ASN1_Object

List of all members.

Public Member Functions

size_t cert_status () const
const CertIDcertid () 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

Detailed Description

Definition at line 42 of file ocsp_types.h.


Member Function Documentation

size_t Botan::OCSP::SingleResponse::cert_status ( ) const [inline]

Definition at line 47 of file ocsp_types.h.

Referenced by decode_from().

{ return m_cert_status; }
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

Parameters:
fromthe 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

Parameters:
tothe 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)");
   }

Definition at line 51 of file ocsp_types.h.

{ return m_nextupdate; }

Definition at line 49 of file ocsp_types.h.

{ return m_thisupdate; }

The documentation for this class was generated from the following files: