Botan
2.1.0
Crypto and TLS for C++11
|
#include <x509path.h>
Public Types | |
typedef Certificate_Status_Code | Code |
Public Member Functions | |
const CertificatePathStatusCodes & | all_statuses () const |
const std::vector< std::shared_ptr< const X509_Certificate > > & | cert_path () const |
Path_Validation_Result (CertificatePathStatusCodes status, std::vector< std::shared_ptr< const X509_Certificate >> &&cert_chain) | |
Path_Validation_Result (Certificate_Status_Code status) | |
Certificate_Status_Code | result () const |
std::string | result_string () const |
bool | successful_validation () const |
const X509_Certificate & | trust_root () const |
std::set< std::string > | trusted_hashes () const |
Static Public Member Functions | |
static const char * | status_string (Certificate_Status_Code code) |
Represents the result of a PKIX path validation
Definition at line 110 of file x509path.h.
Definition at line 113 of file x509path.h.
Botan::Path_Validation_Result::Path_Validation_Result | ( | CertificatePathStatusCodes | status, |
std::vector< std::shared_ptr< const X509_Certificate >> && | cert_chain | ||
) |
Create a Path_Validation_Result
status | list of validation status codes |
cert_chain | the certificate chain that was validated |
Definition at line 692 of file x509path.cpp.
|
inlineexplicit |
Create a Path_Validation_Result
status | validation status code |
Definition at line 172 of file x509path.h.
|
inline |
Definition at line 146 of file x509path.h.
|
inline |
Definition at line 131 of file x509path.h.
|
inline |
Definition at line 141 of file x509path.h.
Referenced by result_string(), successful_validation(), and trust_root().
std::string Botan::Path_Validation_Result::result_string | ( | ) | const |
Definition at line 725 of file x509path.cpp.
References result(), and status_string().
|
static |
code | validation status code |
Definition at line 730 of file x509path.cpp.
References Botan::to_string().
Referenced by result_string().
bool Botan::Path_Validation_Result::successful_validation | ( | ) | const |
Definition at line 718 of file x509path.cpp.
References Botan::OCSP_RESPONSE_GOOD, result(), Botan::VALID_CRL_CHECKED, and Botan::VERIFIED.
const X509_Certificate & Botan::Path_Validation_Result::trust_root | ( | ) | const |
Definition at line 700 of file x509path.cpp.
References result(), and Botan::VERIFIED.
std::set< std::string > Botan::Path_Validation_Result::trusted_hashes | ( | ) | const |
Definition at line 710 of file x509path.cpp.