|
Botan 3.14.1
Crypto and TLS for C&
|
#include <x509_ext.h>
Public Member Functions | |
| std::optional< Subnet > | as_subnet () const |
| std::vector< uint8_t > | BER_encode () const |
| void | decode_from (BER_Decoder &from) override |
| void | encode_into (DER_Encoder &to) const override |
| IPAddressOrRange ()=default | |
| IPAddressOrRange (const Address &addr) | |
| IPAddressOrRange (const Address &min, const Address &max) | |
| IPAddressOrRange (const IPAddress< V > &addr) | |
| IPAddressOrRange (const IPAddress< V > &min, const IPAddress< V > &max) | |
| IPAddressOrRange (const Subnet &subnet) | |
| IPAddress< V > | max () const |
| IPAddress< V > | min () const |
Definition at line 1108 of file x509_ext.h.
|
default |
Referenced by IPAddressOrRange(), IPAddressOrRange(), and IPAddressOrRange().
|
inlineexplicit |
Definition at line 1118 of file x509_ext.h.
|
inline |
Definition at line 1120 of file x509_ext.h.
|
inlineexplicit |
Create a range containing a single address (IPv4Address or IPv6Address)
Definition at line 1129 of file x509_ext.h.
References IPAddressOrRange().
|
inline |
Create a range of addresses (IPv4Address or IPv6Address) from min to max (inclusive)
Definition at line 1134 of file x509_ext.h.
References IPAddressOrRange(), max(), and min().
|
inlineexplicit |
Create a range covering exactly the addresses of a subnet (IPv4Subnet or IPv6Subnet)
Definition at line 1140 of file x509_ext.h.
References IPAddressOrRange().
| auto Botan::Cert_Extension::IPAddressBlocks::IPAddressOrRange< V >::as_subnet | ( | ) | const |
If this range covers exactly the addresses of some subnet, return it. Otherwise return nullopt.
Definition at line 2555 of file x509_ext.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 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 2465 of file x509_ext.cpp.
References Botan::BitString, Botan::ASN1_BitString::bytes(), Botan::BER_Decoder::decode_bitstring(), Botan::BER_Decoder::end_cons(), Botan::fmt(), Botan::BER_Decoder::peek_next_object(), Botan::Sequence, Botan::BER_Decoder::start_sequence(), Botan::BER_Object::type_tag(), and Botan::ASN1_BitString::unused_bits().
|
overridevirtual |
Encode whatever this object is into to
| to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 2366 of file x509_ext.cpp.
References BOTAN_ASSERT_NOMSG, Botan::DER_Encoder::encode_bitstring(), Botan::DER_Encoder::end_cons(), max(), min(), and Botan::DER_Encoder::start_sequence().
|
inline |
Definition at line 1145 of file x509_ext.h.
Referenced by encode_into(), IPAddressOrRange(), and IPAddressOrRange().
|
inline |
Definition at line 1143 of file x509_ext.h.
Referenced by encode_into(), IPAddressOrRange(), and IPAddressOrRange().