|
Botan 3.13.0
Crypto and TLS for C&
|
A single Name Constraint. More...
#include <pkix_types.h>
Public Member Functions | |
| const GeneralName & | base () const |
| std::vector< uint8_t > | BER_encode () const |
| void | decode_from (BER_Decoder &from) override |
| void | encode_into (DER_Encoder &to) const override |
| GeneralSubtree () | |
| GeneralSubtree (GeneralName base) | |
A single Name Constraint.
The Name Constraint extension adds a minimum and maximum path length to a GeneralName to form a constraint. The length limits are not used in PKIX.
This entire class is deprecated and will be removed in a future major release
Definition at line 718 of file pkix_types.h.
|
default |
Creates an empty name constraint.
References GeneralSubtree().
Referenced by GeneralSubtree(), and GeneralSubtree().
|
inlineexplicit |
Creates a name constraint over the given base name.
Definition at line 728 of file pkix_types.h.
References base(), and GeneralSubtree().
|
inline |
Definition at line 737 of file pkix_types.h.
Referenced by GeneralSubtree(), and Botan::operator<<().
|
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 21 of file asn1_obj.cpp.
References encode_into().
Referenced by decode_from(), Botan::PKCS12::export_to(), 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::PSS_Params::PSS_Params().
|
overridevirtual |
Decode whatever this object is from from
| from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 804 of file name_constraint.cpp.
References Botan::ContextSpecific, Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_optional(), Botan::BER_Decoder::end_cons(), and Botan::BER_Decoder::start_sequence().
|
overridevirtual |
Encode whatever this object is into to
| to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 793 of file name_constraint.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), and Botan::DER_Encoder::start_sequence().