Dsearch: require absolute dirname
[exim.git] / src / src / pdkim / crypt_ver.h
1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
4
5 /* Copyright (c) Jeremy Harris 1995 - 2018 */
6 /* See the file NOTICE for conditions of use and distribution. */
7
8 /* Signing and hashing routine selection for PDKIM */
9
10 #include "../exim.h"
11 #include "../sha_ver.h"
12
13
14 #ifdef USE_GNUTLS
15 # include <gnutls/gnutls.h>
16
17 # if GNUTLS_VERSION_NUMBER >= 0x030000
18 # define SIGN_GNUTLS
19 # if GNUTLS_VERSION_NUMBER >= 0x030600
20 # define SIGN_HAVE_ED25519
21 # endif
22 # else
23 # define SIGN_GCRYPT
24 # endif
25 #endif
26
27 #ifdef USE_OPENSSL
28 # define SIGN_OPENSSL
29 # if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10101000L
30 # define SIGN_HAVE_ED25519
31 # endif
32 #endif
33