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

Name

Description

str

Hostname to resolve.

ip

Receives four bytes of IPv4 address on success.

Created with MrDocs