diff options
author | Werner Koch <wk@gnupg.org> | 2015-02-24 17:43:57 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-02-24 17:46:22 +0100 |
commit | 93fa3d5c1760f3fee5412fb29d58fbd60db16ea9 (patch) | |
tree | b89b401ea5231a9300aca6a9f299d693c36923bd /g10/Makefile.am | |
parent | common: Add another test case to zb32.c (diff) | |
download | gnupg2-93fa3d5c1760f3fee5412fb29d58fbd60db16ea9.tar.xz gnupg2-93fa3d5c1760f3fee5412fb29d58fbd60db16ea9.zip |
gpg: Add function to extract the mailbox.
* g10/misc.c (has_invalid_email_chars, is_valid_mailbox)
(is_valid_user_id): Move to ...
* g10/mailbox.c: new file.
(string_has_ctrl_or_space, has_dotdot_after_at): New.
(has_invalid_email_chars): New.
* g10/t-mailbox.c: New.
* g10/Makefile.am (module_tests): Add t-mailbox.
(t_mailbox_SOURCES, t_mailbox_LDADD): New.
--
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/Makefile.am')
-rw-r--r-- | g10/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/Makefile.am b/g10/Makefile.am index 0a021195a..070492406 100644 --- a/g10/Makefile.am +++ b/g10/Makefile.am @@ -83,6 +83,7 @@ common_source = \ textfilter.c \ progress.c \ misc.c \ + mailbox.c \ rmd160.c rmd160.h \ options.h \ openfile.c \ @@ -154,9 +155,11 @@ gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) \ gpgv2_LDFLAGS = $(extra_bin_ldflags) t_common_ldadd = -module_tests = t-rmd160 +module_tests = t-rmd160 t-mailbox t_rmd160_SOURCES = t-rmd160.c rmd160.c t_rmd160_LDADD = $(t_common_ldadd) +t_mailbox_SOURCES = t-mailbox.c mailbox.c +t_mailbox_LDADD = $(t_common_ldadd) $(PROGRAMS): $(needed_libs) ../common/libgpgrl.a |