Commit | Line | Data |
---|---|---|
cb224393 JH |
1 | /************************************************* |
2 | * Exim - an Internet mail transport agent * | |
3 | *************************************************/ | |
4 | ||
f9ba5e22 | 5 | /* Copyright (c) Jeremy Harris 1995 - 2018 */ |
cb224393 JH |
6 | /* See the file NOTICE for conditions of use and distribution. */ |
7 | ||
d73e45df | 8 | /* Signing and hashing routine selection for PDKIM */ |
cb224393 JH |
9 | |
10 | #include "../exim.h" | |
63af6f3a | 11 | #include "../sha_ver.h" |
cb224393 JH |
12 | |
13 | ||
14 | #ifdef USE_GNUTLS | |
cb224393 | 15 | # include <gnutls/gnutls.h> |
2592e6c0 | 16 | |
286b9d5f | 17 | # if GNUTLS_VERSION_NUMBER >= 0x030000 |
d73e45df | 18 | # define SIGN_GNUTLS |
286b9d5f | 19 | # if GNUTLS_VERSION_NUMBER >= 0x030600 |
cb78c1a8 | 20 | # define SIGN_HAVE_ED25519 |
286b9d5f | 21 | # endif |
2592e6c0 | 22 | # else |
d73e45df | 23 | # define SIGN_GCRYPT |
2592e6c0 JH |
24 | # endif |
25 | ||
cb224393 | 26 | #else |
d73e45df | 27 | # define SIGN_OPENSSL |
5ab065ef | 28 | # if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10101000L |
cb78c1a8 JH |
29 | # define SIGN_HAVE_ED25519 |
30 | # endif | |
31 | ||
cb224393 JH |
32 | #endif |
33 |