diff options
author | Bernard Spil <Sp1l@users.noreply.github.com> | 2016-04-30 20:06:52 +0200 |
---|---|---|
committer | Bernard Spil <Sp1l@users.noreply.github.com> | 2016-04-30 20:06:52 +0200 |
commit | 3d048db398f3f1f9de10ad04ef249282020f6ffd (patch) | |
tree | 2d24cd573369bc14d76db65efac4aaa8c9b1559a /src/libserver/dkim.c | |
parent | 07483bda3b8e29d99c4a70bca70fa1f08c0a574b (diff) | |
download | rspamd-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.c | 2 |
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 (); |