aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.c
diff options
context:
space:
mode:
authorBernard Spil <Sp1l@users.noreply.github.com>2016-04-30 20:06:52 +0200
committerBernard Spil <Sp1l@users.noreply.github.com>2016-04-30 20:06:52 +0200
commit3d048db398f3f1f9de10ad04ef249282020f6ffd (patch)
tree2d24cd573369bc14d76db65efac4aaa8c9b1559a /src/libserver/dkim.c
parent07483bda3b8e29d99c4a70bca70fa1f08c0a574b (diff)
downloadrspamd-3d048db398f3f1f9de10ad04ef249282020f6ffd.tar.gz
rspamd-3d048db398f3f1f9de10ad04ef249282020f6ffd.zip
Fix build with unmodified LibreSSL opensslv.h
Add test for LibreSSL to use "old" methods when OPENSSL_VERSION_NUMBER is 0x20000000L
Diffstat (limited to 'src/libserver/dkim.c')
-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 ();