diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-18 16:55:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-11-21 22:58:26 +0100 |
commit | 08a4849ec94fd06c3284994b91835b31a3a2f3aa (patch) | |
tree | 103141ee3a0db934d44bdf1e964ec682060fe658 /src/shared/dns-domain.h | |
parent | fd18634de4d84eba2422908948c27ec6c5bf4cf5 (diff) |
shared: add new API to validate a string as hostname or IP address
Diffstat (limited to 'src/shared/dns-domain.h')
-rw-r--r-- | src/shared/dns-domain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/dns-domain.h b/src/shared/dns-domain.h index af780f0b8b..03f160369c 100644 --- a/src/shared/dns-domain.h +++ b/src/shared/dns-domain.h @@ -107,3 +107,5 @@ int dns_name_equal_skip(const char *a, unsigned n_labels, const char *b); int dns_name_common_suffix(const char *a, const char *b, const char **ret); int dns_name_apply_idna(const char *name, char **ret); + +int dns_name_is_valid_or_address(const char *name); |