Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
IPAddressRange_new, IPAddressRange_free, d2i_IPAddressRange, i2d_IPAddressRange, IPAddressOrRange_new, IPAddressOrRange_free, d2i_IPAddressOrRange, i2d_IPAddressOrRange, IPAddressChoice_new, IPAddressChoice_free, d2i_IPAddressChoice, i2d_IPAddressChoice, IPAddressFamily_new, IPAddressFamily_free, d2i_IPAddressFamily, i2d_IPAddressFamily — RFC 3779 IP address prefixes and rangesSYNOPSIS
#include <openssl/x509v3.h>IPAddressRange_new(void);
IPAddressRange_free(IPAddressRange *range);
d2i_IPAddressRange(IPAddressRange **range, const unsigned char **der_in, long length);
i2d_IPAddressRange(IPAddressRange *range, unsigned char **der_out);
IPAddressOrRange_new(void);
IPAddressOrRange_free(IPAddressOrRange *aor);
d2i_IPAddressOrRange(IPAddressOrRange **aor, const unsigned char **der_in, long length);
i2d_IPAddressOrRange(IPAddressOrRange *aor, unsigned char **der_out);
IPAddressChoice_new(void);
IPAddressChoice_free(IPAddressChoice *ac);
d2i_IPAddressChoice(IPAddressChoice **ac, const unsigned char **der_in, long length);
i2d_IPAddressChoice(IPAddressChoice *ac, unsigned char **der_out);
IPAddressFamily_new(void);
IPAddressFamily_free(IPAddressFamily *af);
d2i_IPAddressFamily(IPAddressFamily **af, const unsigned char **der_in, long length);
i2d_IPAddressFamily(IPAddressFamily *af, unsigned char **der_out);
DESCRIPTION
IPAddressRange, IPAddressOrRange, IPAddressChoice, and IPAddressFamily are building blocks of the IPAddrBlocks type representing the RFC 3779 IP address delegation extension.typedef struct IPAddressRange_st { ASN1_BIT_STRING *min; ASN1_BIT_STRING *max; } IPAddressRange;
typedef struct IPAddressOrRange_st { int type; union { ASN1_BIT_STRING *addressPrefix; IPAddressRange *addressRange; } u; } IPAddressOrRange;
typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;
typedef struct IPAddressChoice_st { int type; union { ASN1_NULL *inherit; IPAddressOrRanges *addressesOrRanges; } u; } IPAddressChoice;
typedef struct IPAddressFamily_st { ASN1_OCTET_STRING *addressFamily; IPAddressChoice *ipAddressChoice; } IPAddressFamily;
typedef STACK_OF(IPAddressFamily) IPAddrBlocks;
RETURN VALUES
IPAddressRange_new() returns a new IPAddressRange object with allocated, empty members, or NULL if an error occurs.SEE ALSO
ASIdentifiers_new(3), ASN1_BIT_STRING_new(3), ASN1_OCTET_STRING_new(3), ASN1_OCTET_STRING_set(3), crypto(3), X509_new(3), X509v3_addr_add_inherit(3), X509v3_addr_inherits(3), X509v3_addr_subset(3)STANDARDS
RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers:- section 2.1.1: Encoding of an IP Address or Prefix
- section 2.1.2: Encoding of a Range of IP Addresses
- section 2.2.3: Syntax
- section 2.2.3.1: Type IPAddrBlocks
- section 2.2.3.2: Type IPAddressFamily
- section 2.2.3.3: Element addressFamily
- section 2.2.3.4: Element ipAddressChoice and Type IPAddressChoice
- section 2.2.3.5: Element inherit
- section 2.2.3.6: Element addressesOrRanges
- section 2.2.3.7: Type IPAddressOrRange
- section 2.2.3.8: Element addressPrefix and Type IPAddress
- section 2.2.3.9: Element addressRange and Type IPAddressRange