BIO_get_host_ip

Resolve a hostname to four IPv4 octets (deprecated; prefer BIO_lookup()).

Synopsis

Declared in <openssl/bio.h>

[[deprecated]]
int
BIO_get_host_ip(
    char const* str,
    unsigned char* ip);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
strHostname to resolve.
ipReceives four bytes of IPv4 address on success.