|
Botan 2.19.5
Crypto and TLS for C&
|
#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 |
| bool | no_warnings () const |
| Path_Validation_Result (Certificate_Status_Code status) | |
| Path_Validation_Result (CertificatePathStatusCodes status, std::vector< std::shared_ptr< const X509_Certificate > > &&cert_chain) | |
| 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 |
| CertificatePathStatusCodes | warnings () const |
| std::string | warnings_string () 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 125 of file x509path.h.
Definition at line 128 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 1049 of file x509path.cpp.
|
inlineexplicit |
Create a Path_Validation_Result
| status | validation status code |
Definition at line 202 of file x509path.h.
|
inline |
Definition at line 166 of file x509path.h.
|
inline |
Definition at line 146 of file x509path.h.
| bool Botan::Path_Validation_Result::no_warnings | ( | ) | const |
Definition at line 1083 of file x509path.cpp.
|
inline |
Definition at line 161 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 1096 of file x509path.cpp.
References result(), and status_string().
Referenced by Botan::TLS::Callbacks::tls_verify_cert_chain().
|
static |
| code | validation status code |
Definition at line 1101 of file x509path.cpp.
References Botan::to_string().
Referenced by result_string(), and warnings_string().
| bool Botan::Path_Validation_Result::successful_validation | ( | ) | const |
Definition at line 1076 of file x509path.cpp.
References Botan::OCSP_RESPONSE_GOOD, result(), Botan::VALID_CRL_CHECKED, and Botan::VERIFIED.
Referenced by Botan::TLS::Callbacks::tls_verify_cert_chain(), and Botan::x509_path_validate().
| const X509_Certificate & Botan::Path_Validation_Result::trust_root | ( | ) | const |
Definition at line 1058 of file x509path.cpp.
References result(), and Botan::VERIFIED.
| std::set< std::string > Botan::Path_Validation_Result::trusted_hashes | ( | ) | const |
Definition at line 1068 of file x509path.cpp.
| CertificatePathStatusCodes Botan::Path_Validation_Result::warnings | ( | ) | const |
Definition at line 1091 of file x509path.cpp.
| std::string Botan::Path_Validation_Result::warnings_string | ( | ) | const |
Definition at line 1109 of file x509path.cpp.
References status_string(), and Botan::ASN1::to_string().