Botan 3.6.1
Crypto and TLS for C&
|
#include <certstor.h>
Public Member Functions | |
virtual std::vector< X509_DN > | all_subjects () const =0 |
bool | certificate_known (const X509_Certificate &cert) const |
virtual std::vector< X509_Certificate > | find_all_certs (const X509_DN &subject_dn, const std::vector< uint8_t > &key_id) const =0 |
virtual std::optional< X509_Certificate > | find_cert (const X509_DN &subject_dn, const std::vector< uint8_t > &key_id) const |
virtual std::optional< X509_Certificate > | find_cert_by_pubkey_sha1 (const std::vector< uint8_t > &key_hash) const =0 |
virtual std::optional< X509_Certificate > | find_cert_by_raw_subject_dn_sha256 (const std::vector< uint8_t > &subject_hash) const =0 |
virtual std::optional< X509_CRL > | find_crl_for (const X509_Certificate &subject) const |
virtual | ~Certificate_Store () |
Certificate Store Interface
Definition at line 20 of file certstor.h.
|
virtualdefault |
|
pure virtual |
|
inline |
cert | certififcate to be searched |
Definition at line 70 of file certstor.h.
References Botan::X509_Certificate::subject_dn(), and Botan::X509_Certificate::subject_key_id().
|
pure virtual |
Find all certificates with a given Subject DN. Subject DN and even the key identifier might not be unique.
Implemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_MacOS, Botan::Certificate_Store_Windows, Botan::Flatfile_Certificate_Store, and Botan::System_Certificate_Store.
Referenced by find_cert().
|
virtual |
Find a certificate by Subject DN and (optionally) key identifier
subject_dn | the subject's distinguished name |
key_id | an optional key id |
Reimplemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_MacOS, Botan::Certificate_Store_Windows, and Botan::System_Certificate_Store.
Definition at line 20 of file certstor.cpp.
References find_all_certs().
Referenced by Botan::OCSP::Response::find_signing_certificate().
|
pure virtual |
Find a certificate by searching for one with a matching SHA-1 hash of public key. Used for OCSP.
key_hash | SHA-1 hash of the subject's public key |
Implemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_MacOS, Botan::Certificate_Store_Windows, Botan::Flatfile_Certificate_Store, and Botan::System_Certificate_Store.
Referenced by Botan::OCSP::Response::find_signing_certificate().
|
pure virtual |
Find a certificate by searching for one with a matching SHA-256 hash of raw subject name. Used for OCSP.
subject_hash | SHA-256 hash of the subject's raw name |
Implemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_MacOS, Botan::Certificate_Store_Windows, Botan::Flatfile_Certificate_Store, and Botan::System_Certificate_Store.
|
virtual |
Finds a CRL for the given certificate
subject | the subject certificate |
Reimplemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_MacOS, Botan::Certificate_Store_Windows, Botan::Flatfile_Certificate_Store, and Botan::System_Certificate_Store.
Definition at line 32 of file certstor.cpp.