Botan 2.19.1
Crypto and TLS for C&
|
#include <pkix_types.h>
Public Member Functions | |
Attribute ()=default | |
Attribute (const OID &, const std::vector< uint8_t > &) | |
Attribute (const std::string &, const std::vector< uint8_t > &) | |
std::vector< uint8_t > | BER_encode () const |
void | decode_from (BER_Decoder &from) override |
void | encode_into (DER_Encoder &to) const override |
const OID & | get_oid () const |
const std::vector< uint8_t > & | get_parameters () const |
Public Attributes | |
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES | __pad0__: OID oid |
std::vector< uint8_t > | parameters |
Definition at line 165 of file pkix_types.h.
|
default |
Botan::Attribute::Attribute | ( | const OID & | attr_oid, |
const std::vector< uint8_t > & | attr_value | ||
) |
Definition at line 18 of file x509_attribute.cpp.
Botan::Attribute::Attribute | ( | const std::string & | attr_oid, |
const std::vector< uint8_t > & | attr_value | ||
) |
Definition at line 26 of file x509_attribute.cpp.
|
inherited |
Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.
Definition at line 16 of file asn1_obj.cpp.
References Botan::ASN1_Object::encode_into().
Referenced by Botan::PSSR::config_for_x509(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::Certificate_Store_In_SQL::revoke_cert().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 48 of file x509_attribute.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), parameters, Botan::BER_Decoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, and Botan::BER_Decoder::start_cons().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 35 of file x509_attribute.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), parameters, Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, and Botan::DER_Encoder::start_cons().
|
inline |
Definition at line 175 of file pkix_types.h.
|
inline |
Definition at line 177 of file pkix_types.h.
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES Botan::Attribute::__pad0__ |
Definition at line 179 of file pkix_types.h.
std::vector<uint8_t> Botan::Attribute::parameters |
Definition at line 185 of file pkix_types.h.
Referenced by decode_from(), and encode_into().