NPKIGetServerIPAddress

Retrieves information about a specified IP address obtained by calling NPKIGetServerIPAndDNSInfo (formerly NWPKIGetServerIPAddress).

Syntax

    #include "npki.h"
    
    NWRCODE NPKIGetServerIPAddress(
       const NPKIContext             context,
       nuint32                       index,
       nuint16                      *ipLength,
       nuint8 const                **ipValue,
       unicode const               **ipNumber,
       nuint16                       *numberOfDNSNames);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
index
(IN) Indicates which IP address is to be returned.

NOTE:index is 0 based.

ipLength
(OUT) Returns to the length of the data in ipValue.
ipValue
(OUT) Returns to the IP address in network byte order (hex).
ipNumber
(OUT) Returns to the IP address in Unicode format.
numberOfDNSNames
(OUT) Returns to the number of DNS names associated with the IP Address.

Return Values

Returns 0 if successful, or a PKI error code if not successful.

Remarks

Call NPKIGetServerIPAddress only after calling NPKIGetServerIPAndDNSInfo successfully.

See Also

NPKIGetServerDNSName, NPKIGetServerIPAndDNSInfo