Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
a2i_ipadd, a2i_IPADDRESS, a2i_IPADDRESS_NC — parse Internet Protocol addresses into ASN.1 OCTET STRINGs for X.509SYNOPSIS
library “libcrypto”#include <openssl/x509v3.h>
a2i_ipadd(unsigned char *ipout, const char *ipasc);
a2i_IPADDRESS(const char *ipasc);
a2i_IPADDRESS_NC(const char *ipasc);
DESCRIPTION
a2i_ipadd() and a2i_IPADDRESS() parse the string ipasc containing an IPv4 or IPv6 address in one of the following formats:d.d.d.d x:x:x:x:x:x:x:x (exactly 8 words) (x:)*x::x(:x)* (less than 8 words) (x:)*x:: (less than 8 words) ::x(:x)* (less than 8 words) :: (x:)*d.d.d.d (up to 6 hexadecimal words, :: can be used)
RETURN VALUES
a2i_ipadd() returns the number of bytes written to ipout in case of success, i.e. 4 for an IPv4 or 16 for an IPv6 address, or 0 if parsing failed.SEE ALSO
a2i_ASN1_STRING(3), ASN1_OCTET_STRING_new(3), ASN1_OCTET_STRING_set(3), GENERAL_NAME_new(3), IPAddressRange_new(3), NAME_CONSTRAINTS_new(3), s2i_ASN1_OCTET_STRING(3), X509_EXTENSION_new(3)STANDARDS
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile- section 4.2.1.6: Subject Alternative Name
- section 4.2.1.10: Name Constraints