DKIM: replace SHA and RSA routines from gnutls, under earlier library
[exim.git] / src / src / pdkim / crypt_ver.h
index 602d137a37628db0369670604168776c7e56cba7..2a9dde952c94025e88e536c1ea52c0a2828f1d78 100644 (file)
 
 
 #ifdef USE_GNUTLS
-# define RSA_GNUTLS
-
 # include <gnutls/gnutls.h>
+
+# if GNUTLS_VERSION_NUMBER > 0x020c00
+#  define RSA_GNUTLS
+# else
+#  define RSA_GCRYPT
+# endif
+
 # if GNUTLS_VERSION_NUMBER >= 0x020a00
 #  define SHA_GNUTLS
-
 # else
-#  define SHA_POLARSSL
+#  define SHA_GCRYPT
 # endif
 
 #else