BIO_ADDR_hostname_string

Format the host portion of a BIO_ADDR as an allocated string.

Synopsis

Declared in <openssl/bio.h>

char*
BIO_ADDR_hostname_string(
    BIO_ADDR const* ap,
    int numeric);

Return Value

Newly allocated NUL-terminated string; free with OPENSSL_free(), or NULL on error.

Parameters

NameDescription
apAddress to format.
numericNon-zero to prefer numeric form (NI_NUMERICHOST); 0 may resolve a name.