Move native sha1 implementation from auths to toplevel, only used for non-TLS builds
[exim.git] / src / src / sha_ver.h
1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
4
5 /* Copyright (c) Jeremy Harris 2016 */
6 /* See the file NOTICE for conditions of use and distribution. */
7
8 /* SHA routine selection */
9
10 #include "exim.h"
11
12 #ifdef SUPPORT_TLS
13
14 # define EXIM_HAVE_SHA2
15
16 # ifdef USE_GNUTLS
17 # include <gnutls/gnutls.h>
18
19 # if GNUTLS_VERSION_NUMBER >= 0x020a00
20 # define SHA_GNUTLS
21 # else
22 # define SHA_GCRYPT
23 # endif
24
25 # else
26 # define SHA_OPENSSL
27 # endif
28
29 #else
30 # define SHA_NATIVE
31 #endif
32