From: Jonathan McDowell Date: Sun, 13 Sep 2020 10:21:09 +0000 (+0100) Subject: Fix compilation without libnettle X-Git-Tag: onak-0.6.1~2 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=87f06d235831df073b739db1778bde95d3b57559;p=onak.git Fix compilation without libnettle The RSA signature routines are unavailable when we don't have nettle. --- diff --git a/rsa.c b/rsa.c index ceb81e1..7da095b 100644 --- a/rsa.c +++ b/rsa.c @@ -16,8 +16,11 @@ * this program. If not, see . */ +#include "build-config.h" + #include +#ifdef HAVE_NETTLE #include #include #include @@ -77,3 +80,4 @@ int rsa_sha384_verify_digest(const struct rsa_public_key *key, return rsa_pkcs1_verify(key, sizeof(buf), buf, s); } +#endif /* HAVE_NETTLE */