SPDX: license tags (mostly by guesswork)
[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 /* SPDX-License-Identifier: GPL-2.0-only */
8
9 /* Signing and hashing routine selection for PDKIM */
10
11 #include "../exim.h"
12 #include "../sha_ver.h"
13
14
15 #ifdef USE_GNUTLS
16 # include <gnutls/gnutls.h>
17
18 # if GNUTLS_VERSION_NUMBER >= 0x030000
19 #  define SIGN_GNUTLS
20 #  if GNUTLS_VERSION_NUMBER >= 0x030600
21 #   define SIGN_HAVE_ED25519
22 #  endif
23 # else
24 #  define SIGN_GCRYPT
25 # endif
26 #endif
27
28 #ifdef USE_OPENSSL
29 # define SIGN_OPENSSL
30 # if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10101000L
31 #  define SIGN_HAVE_ED25519
32 # endif
33 #endif
34