Botan
1.11.15
|
#include <ocsp.h>
Public Member Functions | |
std::string | base64_encode () const |
std::vector< byte > | BER_encode () const |
const X509_Certificate & | issuer () const |
Request (const X509_Certificate &issuer_cert, const X509_Certificate &subject_cert) | |
const X509_Certificate & | subject () const |
Botan::OCSP::Request::Request | ( | const X509_Certificate & | issuer_cert, |
const X509_Certificate & | subject_cert | ||
) | [inline] |
std::string Botan::OCSP::Request::base64_encode | ( | ) | const |
Definition at line 120 of file ocsp.cpp.
References BER_encode().
{ return Botan::base64_encode(BER_encode()); }
std::vector< byte > Botan::OCSP::Request::BER_encode | ( | ) | const |
Definition at line 102 of file ocsp.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::end_explicit(), Botan::DER_Encoder::get_contents_unlocked(), Botan::SEQUENCE, Botan::DER_Encoder::start_cons(), and Botan::DER_Encoder::start_explicit().
Referenced by base64_encode(), and Botan::OCSP::online_check().
{ CertID certid(m_issuer, m_subject); return DER_Encoder().start_cons(SEQUENCE) .start_cons(SEQUENCE) .start_explicit(0) .encode(static_cast<size_t>(0)) // version # .end_explicit() .start_cons(SEQUENCE) .start_cons(SEQUENCE) .encode(certid) .end_cons() .end_cons() .end_cons() .end_cons().get_contents_unlocked(); }
const X509_Certificate& Botan::OCSP::Request::issuer | ( | ) | const [inline] |
const X509_Certificate& Botan::OCSP::Request::subject | ( | ) | const [inline] |