DKIM: replace SHA and RSA routines from gnutls, under earlier library
[exim.git] / src / src / pdkim / crypt_ver.h
CommitLineData
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
cb224393 14# include <gnutls/gnutls.h>
2592e6c0
JH
15
16# if GNUTLS_VERSION_NUMBER > 0x020c00
17# define RSA_GNUTLS
18# else
19# define RSA_GCRYPT
20# endif
21
cb224393
JH
22# if GNUTLS_VERSION_NUMBER >= 0x020a00
23# define SHA_GNUTLS
cb224393 24# else
2592e6c0 25# define SHA_GCRYPT
cb224393
JH
26# endif
27
28#else
29# define RSA_OPENSSL
30# define SHA_OPENSSL
31#endif
32