|
Botan 3.12.0
Crypto and TLS for C&
|
#include <certstor_macos.h>
Public Member Functions | |
| std::vector< X509_DN > | all_subjects () const override |
| bool | certificate_known (const X509_Certificate &cert) const |
| Certificate_Store_MacOS () | |
| Certificate_Store_MacOS (Certificate_Store_MacOS &&)=default | |
| Certificate_Store_MacOS (const Certificate_Store_MacOS &)=default | |
| virtual bool | contains (const X509_Certificate &cert) const |
| std::vector< X509_Certificate > | find_all_certs (const X509_DN &subject_dn, const std::vector< uint8_t > &key_id) const override |
| std::optional< X509_Certificate > | find_cert (const X509_DN &subject_dn, const std::vector< uint8_t > &key_id) const override |
| std::optional< X509_Certificate > | find_cert_by_issuer_dn_and_serial_number (const X509_DN &issuer_dn, std::span< const uint8_t > serial_number) const override |
| std::optional< X509_Certificate > | find_cert_by_pubkey_sha1 (const std::vector< uint8_t > &key_hash) const override |
| std::optional< X509_Certificate > | find_cert_by_raw_subject_dn_sha256 (const std::vector< uint8_t > &subject_hash) const override |
| std::optional< X509_CRL > | find_crl_for (const X509_Certificate &subject) const override |
| Certificate_Store_MacOS & | operator= (Certificate_Store_MacOS &&)=default |
| Certificate_Store_MacOS & | operator= (const Certificate_Store_MacOS &)=default |
Certificate Store that is backed by the system trust store on macOS. This opens a handle to the macOS keychain and serves certificate queries directly from there.
Definition at line 27 of file certstor_macos.h.
| Botan::Certificate_Store_MacOS::Certificate_Store_MacOS | ( | ) |
Definition at line 335 of file certstor_macos.cpp.
Referenced by Certificate_Store_MacOS(), Certificate_Store_MacOS(), operator=(), and operator=().
|
default |
References Certificate_Store_MacOS().
|
default |
References Certificate_Store_MacOS().
|
overridevirtual |
Implements Botan::Certificate_Store.
Definition at line 337 of file certstor_macos.cpp.
|
inherited |
Old version of contains
Definition at line 24 of file certstor.cpp.
References contains().
Referenced by find_cert_by_issuer_dn_and_serial_number().
|
virtualinherited |
| cert | certificate to be searched |
Default implementation uses find_all_certs
Reimplemented in Botan::Certificate_Store_In_Memory, Botan::Certificate_Store_In_SQL, Botan::Certificate_Store_Windows, Botan::Flatfile_Certificate_Store, and Botan::System_Certificate_Store.
Definition at line 28 of file certstor.cpp.
References find_all_certs(), Botan::X509_Certificate::subject_dn(), and Botan::X509_Certificate::subject_key_id().
Referenced by certificate_known(), and find_cert_by_issuer_dn_and_serial_number().
|
overridevirtual |
Find all certificates with a given Subject DN. Subject DN and even the key identifier might not be unique.
Implements Botan::Certificate_Store.
Definition at line 366 of file certstor_macos.cpp.
|
overridevirtual |
Find a certificate by Subject DN and (optionally) key identifier
Reimplemented from Botan::Certificate_Store.
Definition at line 354 of file certstor_macos.cpp.
|
overridevirtual |
Find a certificate by searching for one with a matching issuer DN and serial number. Used for CMS or PKCS#7.
| issuer_dn | the distinguished name of the issuer |
| serial_number | the certificate's serial number |
Implements Botan::Certificate_Store.
Definition at line 396 of file certstor_macos.cpp.
|
overridevirtual |
Find a certificate by searching for one with a matching SHA-1 hash of public key.
Implements Botan::Certificate_Store.
Definition at line 378 of file certstor_macos.cpp.
|
overridevirtual |
| Not_Implemented | as this functionality is not available in the macOS certificate interface |
Implements Botan::Certificate_Store.
Definition at line 390 of file certstor_macos.cpp.
References BOTAN_UNUSED.
|
overridevirtual |
Fetching CRLs is not supported by the keychain on macOS. This will always return an empty list.
Reimplemented from Botan::Certificate_Store.
Definition at line 420 of file certstor_macos.cpp.
References BOTAN_UNUSED.
|
default |
References Certificate_Store_MacOS().
|
default |
References Certificate_Store_MacOS().