Botan 3.3.0
Crypto and TLS for C&
certstor_system.h
Go to the documentation of this file.
1/*
2* (C) 2019 Jack Lloyd
3*
4* Botan is released under the Simplified BSD License (see license.txt)
5*/
6
7#ifndef BOTAN_SYSTEM_CERT_STORE_H_
8#define BOTAN_SYSTEM_CERT_STORE_H_
9
10#include <botan/certstor.h>
11
12namespace Botan {
13
15 public:
17
18 std::optional<X509_Certificate> find_cert(const X509_DN& subject_dn,
19 const std::vector<uint8_t>& key_id) const override;
20
21 std::vector<X509_Certificate> find_all_certs(const X509_DN& subject_dn,
22 const std::vector<uint8_t>& key_id) const override;
23
24 std::optional<X509_Certificate> find_cert_by_pubkey_sha1(const std::vector<uint8_t>& key_hash) const override;
25
26 std::optional<X509_Certificate> find_cert_by_raw_subject_dn_sha256(
27 const std::vector<uint8_t>& subject_hash) const override;
28
29 std::optional<X509_CRL> find_crl_for(const X509_Certificate& subject) const override;
30
31 std::vector<X509_DN> all_subjects() const override;
32
33 private:
34 std::shared_ptr<Certificate_Store> m_system_store;
35};
36
37} // namespace Botan
38
39#endif
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
Definition compiler.h:31