|
Botan 3.14.1
Crypto and TLS for C&
|
#include <x509_ext.h>
Classes | |
| class | Entry |
Public Member Functions | |
| std::unique_ptr< Certificate_Extension > | copy () const override |
| bool | encompasses (const TNAuthList &delegate) const |
| const std::vector< Entry > & | entries () const |
| OID | oid_of () const override |
| TNAuthList ()=default | |
| TNAuthList (std::vector< Entry > entries) | |
| void | validate (const X509_Certificate &subject, const std::optional< X509_Certificate > &issuer, const std::vector< X509_Certificate > &cert_path, std::vector< std::set< Certificate_Status_Code > > &cert_status, size_t pos) const override |
Static Public Member Functions | |
| static TNAuthList | from_der (std::span< const uint8_t > der) |
| static OID | static_oid () |
TNAuthList extension
RFC 8226 Secure Telephone Identity Credentials: Certificates, Section 9
The extension is a list of entries, each of which is a service provider code, a contiguous range of telephone numbers, or a single telephone number.
Definition at line 868 of file x509_ext.h.
|
default |
Create an empty extension; only useful as a decoding target
References entries(), from_der(), and TNAuthList().
Referenced by encompasses(), from_der(), TNAuthList(), and validate().
|
explicit |
Create an extension from a list of entries; throws if entries is empty
Definition at line 1738 of file x509_ext.cpp.
References entries().
|
inlineoverridevirtual |
Make a copy of this extension
Implements Botan::Certificate_Extension.
Definition at line 971 of file x509_ext.h.
References copy().
Referenced by copy().
| bool Botan::Cert_Extension::TNAuthList::encompasses | ( | const TNAuthList & | delegate | ) | const |
Return true if every entry of delegate lies within the authority of this list, following RFC 9060 Section 4. Service provider codes must appear in this list verbatim. If this list contains a service provider code, all numbers and ranges are accepted, including numbers containing '' or '#': the numbers behind a code are not known locally, so the issuer's assignment checks are trusted. Otherwise, numbers containing '' or '#' must appear in this list verbatim, and numeric numbers and ranges must fall within this list's numbers and ranges.
Definition at line 1811 of file x509_ext.cpp.
References Botan::TelephoneNumberRange::count(), entries(), Botan::TelephoneNumber::length(), Botan::TelephoneNumber::numeric_value(), Botan::operator<(), Botan::Cert_Extension::TNAuthList::Entry::ServiceProviderCode, Botan::TelephoneNumberRange::start(), Botan::Cert_Extension::TNAuthList::Entry::TelephoneNumber, Botan::Cert_Extension::TNAuthList::Entry::TelephoneNumberRange, and TNAuthList().
|
inline |
Definition at line 977 of file x509_ext.h.
Referenced by encompasses(), TNAuthList(), and TNAuthList().
|
static |
Decode a bare DER encoded TNAuthorizationList, such as one retrieved via an id-ad-stirTNList access description (RFC 8226 Section 10.1)
Definition at line 1744 of file x509_ext.cpp.
References TNAuthList().
Referenced by TNAuthList().
|
inlineoverridevirtual |
Return object identifier for this extension
Implements Botan::Certificate_Extension.
Definition at line 975 of file x509_ext.h.
References static_oid().
|
inlinestatic |
Definition at line 973 of file x509_ext.h.
Referenced by oid_of().
|
overridevirtual |
Checks this list against the list of every CA above it in the path, adding TN_AUTH_LIST_ERROR to this certificate's status if any of them does not encompass it.
Reimplemented from Botan::Certificate_Extension.
Definition at line 1929 of file x509_ext.cpp.
References Botan::TN_AUTH_LIST_ERROR, and TNAuthList().