common: New function to validate domain names.
authorWerner Koch <wk@gnupg.org>
Fri, 27 Jul 2018 09:56:06 +0000 (11:56 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 27 Jul 2018 10:24:23 +0000 (12:24 +0200)
commitddee9f9409fb5a089883eab0fadef7b9b7e61e72
tree0eb9bef9122ae99b29b5e25903de6f2a4c7f4b68
parent967d3649d24aba623133808e8d01675dff389fbb
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 <wk@gnupg.org>
common/mbox-util.c
common/mbox-util.h
common/t-mbox-util.c