Commit | Line | Data |
---|---|---|
cb224393 JH |
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 | # define RSA_GNUTLS | |
15 | ||
16 | # include <gnutls/gnutls.h> | |
17 | # if GNUTLS_VERSION_NUMBER >= 0x020a00 | |
18 | # define SHA_GNUTLS | |
19 | ||
20 | # else | |
21 | # define SHA_POLARSSL | |
22 | # endif | |
23 | ||
24 | #else | |
25 | # define RSA_OPENSSL | |
26 | # define SHA_OPENSSL | |
27 | #endif | |
28 |