Skip to content

Commit

Permalink
Fix build with unmodified LibreSSL opensslv.h
Browse files Browse the repository at this point in the history
Add test for LibreSSL to use "old" methods when OPENSSL_VERSION_NUMBER is 0x20000000L
  • Loading branch information
Sp1l committed Apr 30, 2016
1 parent 07483bd commit 3d048db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libserver/dkim.c
Expand Up @@ -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 ();
Expand Down

0 comments on commit 3d048db

Please sign in to comment.