Botan
2.1.0
Crypto and TLS for C++11
|
#include <ocsp_types.h>
Public Member Functions | |
CertID ()=default | |
CertID (const X509_Certificate &issuer, const BigInt &subject_serial) | |
void | decode_from (class BER_Decoder &from) override |
void | encode_into (class DER_Encoder &to) const override |
bool | is_id_for (const X509_Certificate &issuer, const X509_Certificate &subject) const |
const std::vector< uint8_t > & | issuer_key_hash () const |
Definition at line 19 of file ocsp_types.h.
|
default |
Botan::OCSP::CertID::CertID | ( | const X509_Certificate & | issuer, |
const BigInt & | subject_serial | ||
) |
Definition at line 19 of file ocsp_types.cpp.
References Botan::HashFunction::create(), hash, Botan::X509_Certificate::raw_subject_dn(), Botan::X509_Certificate::subject_public_key_bitstring(), Botan::unlock(), and Botan::AlgorithmIdentifier::USE_NULL_PARAM.
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 68 of file ocsp_types.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::OCTET_STRING, Botan::SEQUENCE, and Botan::BER_Decoder::start_cons().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 58 of file ocsp_types.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::OCTET_STRING, Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
bool Botan::OCSP::CertID::is_id_for | ( | const X509_Certificate & | issuer, |
const X509_Certificate & | subject | ||
) | const |
Definition at line 34 of file ocsp_types.cpp.
References Botan::HashFunction::create(), Botan::BigInt::decode(), hash, Botan::OIDS::lookup(), Botan::AlgorithmIdentifier::oid, Botan::X509_Certificate::raw_issuer_dn(), Botan::X509_Certificate::serial_number(), Botan::X509_Certificate::subject_public_key_bitstring(), and Botan::unlock().
|
inline |
Definition at line 34 of file ocsp_types.h.