aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-30 22:00:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-30 22:00:32 +0100
commit5cda7efaff4db73310a2eb03fd0da3318252d1bb (patch)
tree2d24cd573369bc14d76db65efac4aaa8c9b1559a
parent07483bda3b8e29d99c4a70bca70fa1f08c0a574b (diff)
parent3d048db398f3f1f9de10ad04ef249282020f6ffd (diff)
downloadrspamd-5cda7efaff4db73310a2eb03fd0da3318252d1bb.tar.gz
rspamd-5cda7efaff4db73310a2eb03fd0da3318252d1bb.zip
Merge pull request #614 from Sp1l/patch-1
Fix build with unmodified LibreSSL opensslv.h
-rw-r--r--src/libserver/dkim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index d126cb5bb..5052960f0 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -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 ();