]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-crypt: Skip undef values if OpenSSL is <1.0.2
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 28 Nov 2016 11:36:56 +0000 (13:36 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 28 Nov 2016 16:24:22 +0000 (18:24 +0200)
OpenSSL 1.0.1 and earlier generate undef warnings due
to using stack as randomness source in a way that
valgrind does not like, so we disable undef value
checks for mail-crypt-plugin.

src/plugins/mail-crypt/Makefile.am

index 60f4ee81b3a2fea8883599d7bc528fd4eed0a3d4..706e700bf1aa92fe07b748aed3c2e5b3ec7e0b74 100644 (file)
@@ -13,6 +13,12 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/doveadm \
        -I$(top_srcdir)/src/plugins/acl
 
+if SSL_VERSION_GE_102
+test_options =
+else !SSL_VERSION_GE_102
+test_options = NOUNDEF=1
+endif !SSL_VERSION_GE_102
+
 doveadm_moduledir = $(moduledir)/doveadm
 
 NOPLUGIN_LDFLAGS =
@@ -105,7 +111,7 @@ noinst_HEADERS = \
 check: check-am check-test
 check-test: all-am
        for bin in $(test_programs); do \
-         if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
+         if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \
        done
 
 noinst_PROGRAMS = $(test_programs)