]> source.dussan.org Git - rspamd.git/commitdiff
Fix build with unmodified LibreSSL opensslv.h 614/head
authorBernard Spil <Sp1l@users.noreply.github.com>
Sat, 30 Apr 2016 18:06:52 +0000 (20:06 +0200)
committerBernard Spil <Sp1l@users.noreply.github.com>
Sat, 30 Apr 2016 18:06:52 +0000 (20:06 +0200)
Add test for LibreSSL to use "old" methods when OPENSSL_VERSION_NUMBER is 0x20000000L

src/libserver/dkim.c

index d126cb5bb9a353079a9c0c5fc46611cdcaa01a11..5052960f0f3ea3120a63cd605abe93873aff70e0 100644 (file)
@@ -886,7 +886,7 @@ rspamd_create_dkim_context (const gchar *sig,
 
                return NULL;
        }
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
        ctx->body_hash = EVP_MD_CTX_create ();
        EVP_DigestInit_ex (ctx->body_hash, md_alg, NULL);
        ctx->headers_hash = EVP_MD_CTX_create ();