X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fsha_ver.h;h=bc2b2f89e6294e0820b7ea2f143c2a46f42c4cec;hb=7a33a3fc2c1ae4df30eaabaf25fc59e2d6ab5d6c;hp=387ac52c179030c1f0d0ea090e1e6ec961d3033f;hpb=8b0fb68e04323248df1208516e8a9293af9859d8;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/sha_ver.h b/src/src/sha_ver.h index 387ac52c1..bc2b2f89e 100644 --- a/src/src/sha_ver.h +++ b/src/src/sha_ver.h @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) Jeremy Harris 2016 */ +/* Copyright (c) Jeremy Harris 2018 */ /* See the file NOTICE for conditions of use and distribution. */ /* SHA routine selection */ @@ -16,7 +16,7 @@ * and not massaging CFLAGS in Local/Makefile is fully supported. */ -#ifdef SUPPORT_TLS +#ifndef DISABLE_TLS # define EXIM_HAVE_SHA2 @@ -26,14 +26,19 @@ # if GNUTLS_VERSION_NUMBER >= 0x020a00 # define SHA_GNUTLS # if GNUTLS_VERSION_NUMBER >= 0x030500 -# define EXIM_HAVE_SHA3 +# define EXIM_HAVE_SHA3 /*MMMM*/ # endif # else # define SHA_GCRYPT # endif +# endif -# else +# ifdef USE_OPENSSL # define SHA_OPENSSL +# include +# if (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER) +# define EXIM_HAVE_SHA3 +# endif # endif #else