X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fdane.c;h=a12e16238094496c5b39138d06ad50c4e4de501e;hb=e2fe20104068e079266859fbe7a95fdab5d3fee2;hp=b632d80ddd390418dcd5655929bf157a4749ce2e;hpb=d4fd1b83a197d73cbac114fe53f3448d8b5c7cc2;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/dane.c b/src/src/dane.c index b632d80dd..a12e16238 100644 --- a/src/src/dane.c +++ b/src/src/dane.c @@ -4,6 +4,7 @@ /* Copyright (c) University of Cambridge 1995 - 2012, 2014 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* This module provides DANE (RFC6659) support for Exim. See also the draft RFC for DANE-over-SMTP, "SMTP security via opportunistic DANE TLS" @@ -24,12 +25,12 @@ reference itself to stop picky compilers complaining that it is unused, and put in a dummy argument to stop even pickier compilers complaining about infinite loops. */ -#ifndef EXPERIMENTAL_DANE +#ifndef SUPPORT_DANE static void dummy(int x) { dummy(x-1); } #else /* Enabling DANE without enabling TLS cannot work. Abort the compilation. */ -# ifndef SUPPORT_TLS +# ifdef DISABLE_TLS # error DANE support requires that TLS support must be enabled. Abort build. # endif @@ -38,11 +39,11 @@ static void dummy(int x) { dummy(x-1); } # error DANE support requires that the DNS resolver library supports DNSSEC # endif -# ifndef USE_GNUTLS +# ifdef USE_OPENSSL # include "dane-openssl.c" # endif -#endif /* EXPERIMENTAL_DANE */ +#endif /* SUPPORT_DANE */ /* End of dane.c */