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>
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;
static MemoryVector< byte > make_signed(class PK_Signer *signer, RandomNumberGenerator &rng, const AlgorithmIdentifier &alg_id, const MemoryRegion< byte > &tbs)
bool check_signature(class Public_Key &key) const
std::string hash_used_for_signature() const
X509_Object(DataSource &src, const std::string &pem_labels)
std::string PEM_encode() const
AlgorithmIdentifier signature_algorithm() const
MemoryVector< byte > tbs_data() const
MemoryVector< byte > signature() const
AlgorithmIdentifier sig_algo
MemoryVector< byte > BER_encode() const
MemoryVector< byte > tbs_bits
void encode(Pipe &out, X509_Encoding encoding=PEM) const