Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
ASRange_new, ASRange_free, d2i_ASRange, i2d_ASRange, ASIdOrRange_new, ASIdOrRange_free, d2i_ASIdOrRange, i2d_ASIdOrRange, ASIdentifierChoice_new, ASIdentifierChoice_free, d2i_ASIdentifierChoice, i2d_ASIdentifierChoice — RFC 3779 autonomous system identifiers and rangesSYNOPSIS
#include <openssl/x509v3.h>ASRange_new(void);
ASRange_free(ASRange *asrange);
d2i_ASRange(ASRange **asrange, const unsigned char **der_in, long length);
i2d_ASRange(ASRange *asrange, unsigned char **der_out);
ASIdOrRange_new(void);
ASIdOrRange_free(ASIdOrRange *aor);
d2i_ASIdOrRange(ASIdOrRange **aor, const unsigned char **der_in, long length);
i2d_ASIdOrRange(ASIdOrRange *aor, unsigned char **der_out);
ASIdentifierChoice_new(void);
ASIdentifierChoice_free(ASIdentifierChoice *aic);
d2i_ASIdentifierChoice(ASIdentifierChoice **aic, const unsigned char **der_in, long length);
i2d_ASIdentifierChoice(ASIdentifierChoice *aic, unsigned char **der_out);
DESCRIPTION
ASRange, ASIdOrRange, and ASIdentifierChoice are building blocks of the ASIdentifiers type representing the RFC 3779 autonomous system identifier delegation extension.typedef struct ASRange_st { ASN1_INTEGER *min; ASN1_INTEGER *max; } ASRange;
typedef struct ASIdOrRange_st { int type; union { ASN1_INTEGER *id; ASRange *range; } u; } ASIdOrRange;
typedef STACK_OF(ASIdOrRange) ASIdOrRanges;
typedef struct ASIdentifierChoice_st { int type; union { ASN1_NULL *inherit; ASIdOrRanges *asIdsOrRanges; } u; } ASIdentifierChoice;
typedef struct ASIdentifiers_st { ASIdentifierChoice *asnum; ASIdentifierChoice *rdi; } ASIdentifiers;
RETURN VALUES
ASRange_new() returns a new ASRange object with allocated, empty members, or NULL if an error occurs.SEE ALSO
ASIdentifiers_new(3), ASN1_INTEGER_set_uint64(3), crypto(3), IPAddressRange_new(3), s2i_ASN1_INTEGER(3), STACK_OF(3), X509_new(3), X509v3_asid_add_id_or_range(3)STANDARDS
RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers:- section 3.2.3: Syntax
- section 3.2.3.1: Type ASIdentifiers
- section 3.2.3.2: Elements asnum, rdi, and Type ASIdentifierChoice
- section 3.2.3.3: Element inherit
- section 3.2.3.4: Element asIdsOrRanges
- section 3.2.3.5: Type ASIdOrRange
- section 3.2.3.6: Element id
- section 3.2.3.7: Element range
- section 3.2.3.8: Type ASRange
- section 3.2.3.9: Elements min and max