11#include <botan/asn1_obj.h>
12#include <botan/bigint.h>
13#include <botan/pkix_types.h>
14#include <botan/x509cert.h>
21class Certificate_Store;
41 std::vector<uint8_t> m_issuer_dn_hash;
42 std::vector<uint8_t> m_issuer_key_hash;
62 size_t m_cert_status = 2;
84 std::vector<uint8_t> BER_encode()
const;
101 const std::vector<uint8_t>&
issuer_key_hash()
const {
return m_certid.issuer_key_hash(); }
139 Response(
const std::vector<uint8_t>& response_bits) :
Response(response_bits.data(), response_bits.size()) {}
146 Response(
const uint8_t response_bits[],
size_t response_bits_len);
158 std::optional<X509_Certificate> find_signing_certificate(
194 const std::vector<uint8_t>&
raw_bits()
const {
return m_response_bits; }
215 std::chrono::system_clock::time_point ref_time = std::chrono::system_clock::now(),
216 std::chrono::seconds max_age = std::chrono::seconds::zero())
const;
221 const std::vector<X509_Certificate>&
certificates()
const {
return m_certs; }
226 std::optional<Certificate_Status_Code>
dummy_status()
const {
return m_dummy_response_status; }
233 std::vector<uint8_t> m_response_bits;
236 std::vector<uint8_t> m_key_hash;
237 std::vector<uint8_t> m_tbs_bits;
239 std::vector<uint8_t> m_signature;
240 std::vector<X509_Certificate> m_certs;
242 std::vector<SingleResponse> m_responses;
244 std::optional<Certificate_Status_Code> m_dummy_response_status;
247#if defined(BOTAN_HAS_HTTP_UTIL)
259 const
BigInt& subject_serial,
260 std::string_view ocsp_responder,
261 std::chrono::milliseconds timeout = std::chrono::milliseconds(3000));
273 std::chrono::milliseconds timeout = std::chrono::milliseconds(3000));
const std::vector< uint8_t > & issuer_key_hash() const
const X509_Certificate & subject() const
const std::vector< uint8_t > & issuer_key_hash() const
const X509_Certificate & issuer() const
Response(const std::vector< uint8_t > &response_bits)
Response_Status_Code status() const
const X509_DN & signer_name() const
const X509_Time & produced_at() const
std::optional< Certificate_Status_Code > dummy_status() const
const std::vector< X509_Certificate > & certificates() const
const std::vector< uint8_t > & raw_bits() const
const std::vector< uint8_t > & signer_key_hash() const
const CertID & certid() const
X509_Time next_update() const
X509_Time this_update() const
size_t cert_status() const
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
bool verify_signature(std::span< const uint8_t, ED448_LEN > pk, bool phflag, std::span< const uint8_t > context, std::span< const uint8_t > sig, std::span< const uint8_t > msg)
Verify a signature(RFC 8032 5.2.7)
size_t base64_encode(char out[], const uint8_t in[], size_t input_length, size_t &input_consumed, bool final_inputs)