aboutsummaryrefslogtreecommitdiffstats
path: root/common/mbox-util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-07-27 09:56:06 +0000
committerWerner Koch <[email protected]>2018-07-27 10:24:23 +0000
commitddee9f9409fb5a089883eab0fadef7b9b7e61e72 (patch)
tree0eb9bef9122ae99b29b5e25903de6f2a4c7f4b68 /common/mbox-util.h
parentscd: Add support for Trustica Cryptoucan. (diff)
downloadgnupg-ddee9f9409fb5a089883eab0fadef7b9b7e61e72.tar.gz
gnupg-ddee9f9409fb5a089883eab0fadef7b9b7e61e72.zip
common: New function to validate domain names.
* common/mbox-util.c (is_valid_domain_name): New. * common/t-mbox-util.c (run_dns_test): New test. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/mbox-util.h')
-rw-r--r--common/mbox-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mbox-util.h b/common/mbox-util.h
index bce003f31..7355ceef5 100644
--- a/common/mbox-util.h
+++ b/common/mbox-util.h
@@ -24,6 +24,7 @@ int is_valid_mailbox (const char *name);
int is_valid_mailbox_mem (const void *buffer, size_t length);
char *mailbox_from_userid (const char *userid);
int is_valid_user_id (const char *uid);
+int is_valid_domain_name (const char *string);
#endif /*GNUPG_COMMON_MBOX_UTIL_H*/