Merge branch 'master' into 4.next
[exim.git] / src / src / pdkim / crypt_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 /* RSA and SHA routine selection for PDKIM */
9
10 #include "../exim.h"
11
12
13 #ifdef USE_GNUTLS
14 # include <gnutls/gnutls.h>
15
16 # if GNUTLS_VERSION_NUMBER > 0x020c00
17 #  define RSA_GNUTLS
18 # else
19 #  define RSA_GCRYPT
20 # endif
21
22 # if GNUTLS_VERSION_NUMBER >= 0x020a00
23 #  define SHA_GNUTLS
24 # else
25 #  define SHA_GCRYPT
26 # endif
27
28 #else
29 # define RSA_OPENSSL
30 # define SHA_OPENSSL
31 #endif
32