a2i_IPADDRESS_NC function

  1. @RecordUse.new()
  2. @Native<Pointer<ASN1_OCTET_STRING> Function(Pointer<Char> ipasc)>(ffi.Pointer<ffi.Char>)>(symbol: 'bssl_dart_a2i_IPADDRESS_NC')
Pointer<ASN1_OCTET_STRING> a2i_IPADDRESS_NC(
  1. Pointer<Char> ipasc
)

a2i_IPADDRESS_NC decodes ipasc as the textual representation of an IPv4 or IPv6 address range. On success, it returns a newly-allocated ASN1_OCTET_STRING containing the decoded IP address, followed by the decoded mask. IPv4 ranges are represented as 8-byte strings and IPv6 ranges as 32-byte strings. On failure, it returns NULL.

The text format decoded by this function is not the standard CIDR notation. Instead, the mask after the "/" is represented as another IP address. For example, "192.168.0.0/16" would be written "192.168.0.0/255.255.0.0".

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Pointer<ASN1_OCTET_STRING> Function(ffi.Pointer<ffi.Char>)>(
  symbol: 'bssl_dart_a2i_IPADDRESS_NC',
)
external ffi.Pointer<ASN1_OCTET_STRING> a2i_IPADDRESS_NC(
  ffi.Pointer<ffi.Char> ipasc,
);