1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) Jeremy Harris 2018 */
6 /* See the file NOTICE for conditions of use and distribution. */
8 /* SHA routine selection */
12 /* Please be aware that pulling in extra headers which are not in the system
13 * includes may require careful juggling of CFLAGS in
14 * scripts/Configure-Makefile -- that logic should be kept in sync with this.
15 * In particular, building with just something like USE_OPENSSL_PC=openssl
16 * and not massaging CFLAGS in Local/Makefile is fully supported.
21 # define EXIM_HAVE_SHA2
24 # include <gnutls/gnutls.h>
26 # if GNUTLS_VERSION_NUMBER >= 0x020a00
28 # if GNUTLS_VERSION_NUMBER >= 0x030500
29 # define EXIM_HAVE_SHA3 /*MMMM*/
38 # include <openssl/ssl.h>
39 # if (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER)
40 # define EXIM_HAVE_SHA3