8 #ifndef BOTAN_X509_CERTS_H__
9 #define BOTAN_X509_CERTS_H__
11 #include <botan/x509_obj.h>
12 #include <botan/x509_dn.h>
13 #include <botan/x509_key.h>
14 #include <botan/x509_ext.h>
15 #include <botan/asn1_alt_name.h>
16 #include <botan/datastor.h>
17 #include <botan/key_constraint.h>
18 #include <botan/name_constraint.h>
49 std::vector<uint8_t> subject_public_key_bits()
const;
55 std::vector<uint8_t> subject_public_key_bitstring()
const;
62 std::vector<uint8_t> subject_public_key_bitstring_sha1()
const;
88 std::vector<std::string> subject_info(
const std::string& name)
const;
96 std::vector<std::string> issuer_info(
const std::string& name)
const;
101 std::vector<uint8_t> raw_issuer_dn()
const;
106 std::vector<uint8_t> raw_issuer_dn_sha256()
const;
111 std::vector<uint8_t> raw_subject_dn()
const;
116 std::vector<uint8_t> raw_subject_dn_sha256()
const;
122 std::string start_time()
const;
128 std::string end_time()
const;
134 uint32_t x509_version()
const;
140 std::vector<uint8_t> serial_number()
const;
146 std::vector<uint8_t> authority_key_id()
const;
152 std::vector<uint8_t> subject_key_id()
const;
164 bool is_CA_cert()
const;
180 bool allowed_extended_usage(
const std::string& usage)
const;
197 bool has_ex_constraint(
const std::string& ex_constraint)
const;
204 uint32_t path_limit()
const;
210 bool is_critical(
const std::string& ex_name)
const;
224 std::vector<std::string> ex_constraints()
const;
238 std::vector<std::string> policies()
const;
249 std::string ocsp_responder()
const;
254 std::string crl_distribution_point()
const;
265 std::string fingerprint(
const std::string& hash_name =
"SHA-1")
const;
272 bool matches_dns_name(
const std::string& name)
const;
293 #if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
313 void force_decode()
override;
bool operator!=(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator==(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator<(const OID &a, const OID &b)
X509_DN create_dn(const Data_Store &info)
AlternativeName create_alt_name(const Data_Store &info)
std::string to_string(const secure_vector< uint8_t > &bytes)
bool is_self_signed() const