From: Vsevolod Stakhov Date: Tue, 17 Jul 2018 11:22:19 +0000 (+0100) Subject: [Minor] Fix build with libressl X-Git-Tag: 1.7.9~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba3a394052b2639b3366a1c0aec2fbd5fff1e662;p=rspamd.git [Minor] Fix build with libressl Issue: #2347 Closes: #2347 --- diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index f532c5a57..6d3ace1df 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -3020,7 +3020,7 @@ rspamd_dkim_match_keys (rspamd_dkim_key_t *pk, return FALSE; } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) RSA_get0_key (pk->key.key_rsa, &n1, NULL, NULL); RSA_get0_key (sk->key_rsa, &n2, NULL, NULL); #else