diff options
Diffstat (limited to 'src/libstrongswan/utils/host.h')
-rw-r--r-- | src/libstrongswan/utils/host.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/host.h b/src/libstrongswan/utils/host.h index fd2fe01b1..6a1d824c6 100644 --- a/src/libstrongswan/utils/host.h +++ b/src/libstrongswan/utils/host.h @@ -160,6 +160,16 @@ struct host_t { host_t *host_create_from_string(char *string, u_int16_t port); /** + * Constructor to create a host_t from a DNS name. + * + * @param string hostname to resolve + * @param family family to prefer, 0 for first match + * @param port port number + * @return host_t, NULL lookup failed + */ +host_t *host_create_from_dns(char *string, int family, u_int16_t port); + +/** * Constructor to create a host_t object from an address chunk * * @param family Address family, such as AF_INET or AF_INET6 |