]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build with libressl
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Jul 2018 11:22:19 +0000 (12:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Jul 2018 11:22:19 +0000 (12:22 +0100)
Issue: #2347
Closes: #2347
src/libserver/dkim.c

index f532c5a577aa206be291f2487a51dd5786bf7946..6d3ace1df1e90e9b62a67f2696d40a5d2b3906e1 100644 (file)
@@ -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