8 #ifndef BOTAN_X509_OBJECT_H__
9 #define BOTAN_X509_OBJECT_H__
11 #include <botan/asn1_obj.h>
12 #include <botan/pipe.h>
13 #include <botan/pubkey_enums.h>
14 #include <botan/rng.h>
45 std::string hash_used_for_signature()
const;
65 bool check_signature(
class Public_Key& key)
const;
73 bool check_signature(
class Public_Key* key)
const;
91 BOTAN_DEPRECATED(
"Use BER_encode or PEM_encode")
97 X509_Object(
const std::string& file,
const std::string& pem_labels);
104 virtual void force_decode() = 0;
107 std::vector<std::string> PEM_labels_allowed;
108 std::string PEM_label_pref;
MemoryVector< byte > tbs_bits
SecureVector< byte > BER_encode(const Private_Key &key)
std::string PEM_encode(const Private_Key &key)
RandomNumberGenerator * rng
AlgorithmIdentifier sig_algo
std::string encode(const byte der[], size_t length, const std::string &label, size_t width)