From 87f06d235831df073b739db1778bde95d3b57559 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 13 Sep 2020 11:21:09 +0100 Subject: [PATCH] Fix compilation without libnettle The RSA signature routines are unavailable when we don't have nettle. --- rsa.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.39.2