DKIM: Ed25519 signatures under OpenSSL (1.1.1 or later)
[exim.git] / src / src / pdkim / crypt_ver.h
index e14ee5f4c83cc064f8a482f5f9c5dad0ac075d3e..0982eb788cbfc404a01ebe6c5d4bb935cee5e59d 100644 (file)
@@ -17,7 +17,7 @@
 # if GNUTLS_VERSION_NUMBER >= 0x030000
 #  define SIGN_GNUTLS
 #  if GNUTLS_VERSION_NUMBER >= 0x030600
-#   define SIGN_HAVE_ED25519           /*MMMM*/
+#   define SIGN_HAVE_ED25519
 #  endif
 # else
 #  define SIGN_GCRYPT
@@ -25,5 +25,9 @@
 
 #else
 # define SIGN_OPENSSL
+#  if OPENSSL_VERSION_NUMBER >= 0x10101000L
+#   define SIGN_HAVE_ED25519
+#  endif
+
 #endif