Botan 3.0.0
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< X509_Certificate > & | cert_path () const |
bool | no_warnings () const |
Path_Validation_Result (Certificate_Status_Code status) | |
Path_Validation_Result (CertificatePathStatusCodes status, std::vector< X509_Certificate > &&cert_chain) | |
Certificate_Status_Code | result () const |
std::string | result_string () const |
bool | successful_validation () const |
const X509_Certificate & | trust_root () 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 141 of file x509path.h.
Definition at line 144 of file x509path.h.
Botan::Path_Validation_Result::Path_Validation_Result | ( | CertificatePathStatusCodes | status, |
std::vector< 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 1095 of file x509path.cpp.
|
inlineexplicit |
Create a Path_Validation_Result
status | validation status code |
Definition at line 212 of file x509path.h.
|
inline |
Definition at line 176 of file x509path.h.
|
inline |
Definition at line 156 of file x509path.h.
bool Botan::Path_Validation_Result::no_warnings | ( | ) | const |
Definition at line 1121 of file x509path.cpp.
|
inline |
Definition at line 171 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 1134 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 1139 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 1114 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 1104 of file x509path.cpp.
References result(), and Botan::VERIFIED.
CertificatePathStatusCodes Botan::Path_Validation_Result::warnings | ( | ) | const |
Definition at line 1129 of file x509path.cpp.
std::string Botan::Path_Validation_Result::warnings_string | ( | ) | const |
Definition at line 1147 of file x509path.cpp.
References status_string().