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-29 16:39:32 +0000
commit4f59187a17f16d559e37a375501a0add1ca7eee8 (patch)
tree85f439357d443b3c1a27254a251e3f73690a23e0 /common/mbox-util.h
parentscd: Add support for Trustica Cryptoucan. (diff)
downloadgnupg-4f59187a17f16d559e37a375501a0add1ca7eee8.tar.gz
gnupg-4f59187a17f16d559e37a375501a0add1ca7eee8.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]> (cherry picked from commit ddee9f9409fb5a089883eab0fadef7b9b7e61e72)
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*/