#include <ocsp.h>
An OCSP request.
Definition at line 112 of file ocsp.h.
◆ Request() [1/2]
Create an OCSP request.
- Parameters
-
| issuer_cert | issuer certificate |
| subject_cert | subject certificate |
Definition at line 325 of file ocsp.cpp.
325 :
326 m_issuer(issuer_cert), m_certid(m_issuer, subject_cert.serial()) {
327 if(subject_cert.issuer_dn() != issuer_cert.subject_dn()) {
328 throw Invalid_Argument("Invalid cert pair to OCSP::Request (mismatched issuer,subject args?)");
329 }
330}
References Botan::X509_Certificate::issuer_dn(), and Botan::X509_Certificate::subject_dn().
◆ Request() [2/2]
Definition at line 332 of file ocsp.cpp.
332 :
333 m_issuer(issuer_cert), m_certid(m_issuer, subject_serial) {}
◆ base64_encode()
| std::string Botan::OCSP::Request::base64_encode |
( |
| ) |
const |
- Returns
- Base64-encoded OCSP request
Definition at line 368 of file ocsp.cpp.
368 {
370}
std::vector< uint8_t > BER_encode() const
size_t base64_encode(char out[], const uint8_t in[], size_t input_length, size_t &input_consumed, bool final_inputs)
References Botan::base64_encode(), and BER_encode().
◆ BER_encode()
| std::vector< uint8_t > Botan::OCSP::Request::BER_encode |
( |
| ) |
const |
◆ issuer()
- Returns
- issuer certificate
Definition at line 136 of file ocsp.h.
◆ issuer_key_hash()
| const std::vector< uint8_t > & Botan::OCSP::Request::issuer_key_hash |
( |
| ) |
const |
|
inline |
Definition at line 146 of file ocsp.h.
146{ return m_certid.issuer_key_hash(); }
◆ subject()
- Returns
- subject certificate TODO(Botan4) remove this function
Definition at line 142 of file ocsp.h.
142 {
143 throw Not_Implemented("Method have been deprecated");
144 }
The documentation for this class was generated from the following files: