Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
X509v3_addr_get_afi, X509v3_addr_get_range — parse helpers for the IP address delegation extensionSYNOPSIS
#include <openssl/x509v3.h>X509v3_addr_get_afi(const IPAddressFamily *af);
X509v3_addr_get_range(IPAddressOrRange *aor, const unsigned afi, unsigned char *min, unsigned char *max, const int length);
DESCRIPTION
X509v3_addr_get_afi() returns the address family identifier (AFI) of af.RETURN VALUES
X509v3_addr_get_afi() returns the AFI encoded in af or 0 if af does not contain a valid AFI, or if the AFI is not IPv4 or IPv6.STANDARDS
RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers:- section 2: IP Address delegation extension
- section 2.2.3.3: Element addressFamily
- section 2.2.3.7: Type IPAddressOrRange
- section 2.2.3.8: Element addressPrefix and Type IPAddress