Botan 2.19.1
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 &) override |
void | encode_into (DER_Encoder &) const override |
GeneralSubtree () | |
GeneralSubtree (const GeneralName &base, size_t min, size_t max) | |
GeneralSubtree (const std::string &str) | |
size_t | maximum () const |
size_t | minimum () const |
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 currently unused.
Definition at line 257 of file pkix_types.h.
|
inline |
Creates an empty name constraint.
Definition at line 263 of file pkix_types.h.
|
inline |
Definition at line 272 of file pkix_types.h.
Botan::GeneralSubtree::GeneralSubtree | ( | const std::string & | str | ) |
Creates a new name constraint for its string format.
str | name constraint |
Definition at line 231 of file name_constraint.cpp.
|
inline |
Definition at line 289 of file pkix_types.h.
Referenced by 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 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 255 of file name_constraint.cpp.
References Botan::CONTEXT_SPECIFIC, Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_optional(), Botan::BER_Decoder::end_cons(), Botan::SEQUENCE, 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 250 of file name_constraint.cpp.
|
inline |
Definition at line 299 of file pkix_types.h.
Referenced by Botan::operator<<().
|
inline |
Definition at line 294 of file pkix_types.h.
Referenced by Botan::operator<<().