Botan
1.10.9
|
#include <x509stor.h>
Public Types | |
enum | Cert_Usage { ANY = 0x00, TLS_SERVER = 0x01, TLS_CLIENT = 0x02, CODE_SIGNING = 0x04, EMAIL_PROTECTION = 0x08, TIME_STAMPING = 0x10, CRL_SIGNING = 0x20 } |
Public Member Functions | |
void | add_cert (const X509_Certificate &, bool=false) |
void | add_certs (DataSource &) |
X509_Code | add_crl (const X509_CRL &) |
void | add_new_certstore (Certificate_Store *) |
void | add_trusted_certs (DataSource &) |
std::vector< X509_Certificate > | get_cert_chain (const X509_Certificate &) |
std::string | PEM_encode () const |
X509_Code | validate_cert (const X509_Certificate &, Cert_Usage=ANY) |
X509_Store (u32bit time_slack=24 *60 *60, u32bit cache_results=30 *60) | |
X509_Store (const X509_Store &) | |
~X509_Store () | |
X.509 Certificate Store
Definition at line 48 of file x509stor.h.
Enumerator | |
---|---|
ANY | |
TLS_SERVER | |
TLS_CLIENT | |
CODE_SIGNING | |
EMAIL_PROTECTION | |
TIME_STAMPING | |
CRL_SIGNING |
Definition at line 51 of file x509stor.h.
Definition at line 171 of file x509stor.cpp.
Botan::X509_Store::X509_Store | ( | const X509_Store & | other | ) |
Definition at line 182 of file x509stor.cpp.
Botan::X509_Store::~X509_Store | ( | ) |
Definition at line 196 of file x509stor.cpp.
void Botan::X509_Store::add_cert | ( | const X509_Certificate & | cert, |
bool | trusted = false |
||
) |
Definition at line 473 of file x509stor.cpp.
References Botan::X509_Certificate::is_self_signed(), Botan::X509_Certificate::subject_dn(), and Botan::X509_Certificate::subject_key_id().
void Botan::X509_Store::add_certs | ( | DataSource & | source | ) |
Definition at line 514 of file x509stor.cpp.
Definition at line 530 of file x509stor.cpp.
References Botan::X509_CRL::authority_key_id(), Botan::CRL_HAS_EXPIRED, Botan::CRL_ISSUER_NOT_FOUND, Botan::CRL_NOT_YET_VALID, CRL_SIGNING, Botan::X509_CRL::get_revoked(), Botan::X509_CRL::issuer_dn(), Botan::X509_CRL::next_update(), Botan::REMOVE_FROM_CRL, Botan::X509_Certificate::subject_dn(), Botan::X509_Certificate::subject_key_id(), Botan::X509_Certificate::subject_public_key(), Botan::system_time(), Botan::X509_CRL::this_update(), validate_cert(), and Botan::VERIFIED.
void Botan::X509_Store::add_new_certstore | ( | Certificate_Store * | certstore | ) |
Definition at line 465 of file x509stor.cpp.
void Botan::X509_Store::add_trusted_certs | ( | DataSource & | source | ) |
Definition at line 522 of file x509stor.cpp.
std::vector< X509_Certificate > Botan::X509_Store::get_cert_chain | ( | const X509_Certificate & | cert | ) |
std::string Botan::X509_Store::PEM_encode | ( | ) | const |
Definition at line 596 of file x509stor.cpp.
X509_Code Botan::X509_Store::validate_cert | ( | const X509_Certificate & | cert, |
Cert_Usage | cert_usage = ANY |
||
) |
Definition at line 205 of file x509stor.cpp.
References Botan::CERT_HAS_EXPIRED, Botan::CERT_IS_REVOKED, Botan::CERT_NOT_YET_VALID, Botan::X509_Certificate::end_time(), Botan::X509_Certificate::start_time(), Botan::system_time(), and Botan::VERIFIED.
Referenced by add_crl().