Resolve a hostname to four IPv4 octets (deprecated; prefer BIO_lookup()).
Declared in <openssl/bio.h>
[[deprecated]]
int
BIO_get_host_ip(
char const* str,
unsigned char* ip);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on error.
| Name | Description |
|---|---|
| str | Hostname to resolve. |
| ip | Receives four bytes of IPv4 address on success. |