#include <ocsp.h>
An OCSP request.
Definition at line 75 of file ocsp.h.
◆ Request() [1/2]
◆ Request() [2/2]
Definition at line 181 of file ocsp.cpp.
181 :
182 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 217 of file ocsp.cpp.
217 {
219}
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 |
- Returns
- BER-encoded OCSP request
Definition at line 184 of file ocsp.cpp.
184 {
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199 std::vector<uint8_t> output;
201 .start_sequence()
202 .start_sequence()
203 .start_explicit(0)
204 .encode(static_cast<size_t>(0))
205 .end_explicit()
206 .start_sequence()
207 .start_sequence()
208 .encode(m_certid)
209 .end_cons()
210 .end_cons()
211 .end_cons()
212 .end_cons();
213
214 return output;
215}
References Botan::DER_Encoder::DER_Encoder().
Referenced by base64_encode().
◆ issuer()
- Returns
- issuer certificate
Definition at line 99 of file ocsp.h.
◆ issuer_key_hash()
| const std::vector< uint8_t > & Botan::OCSP::Request::issuer_key_hash |
( |
| ) |
const |
|
inline |
Definition at line 109 of file ocsp.h.
109{ return m_certid.issuer_key_hash(); }
◆ subject()
- Returns
- subject certificate TODO(Botan4) remove this function
Definition at line 105 of file ocsp.h.
105 {
107 }
Not_Implemented(std::string_view err)
The documentation for this class was generated from the following files: