From 88486427349d3aa4605b4ae3398dd0fb866d0676 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Mon, 30 Dec 2002 22:09:31 +0100
Subject: [PATCH] * rsa-decrypt.c: Make compilation conditional on
 WITH_PUBLIC_KEY. * rsa-encrypt.c: Likewise.

Rev: src/nettle/rsa-decrypt.c:1.3
Rev: src/nettle/rsa-encrypt.c:1.4
---
 rsa-decrypt.c | 8 ++++++++
 rsa-encrypt.c | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/rsa-decrypt.c b/rsa-decrypt.c
index dfdf089f..41f720a0 100644
--- a/rsa-decrypt.c
+++ b/rsa-decrypt.c
@@ -23,6 +23,12 @@
  * MA 02111-1307, USA.
  */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if WITH_PUBLIC_KEY
+
 #include "rsa.h"
 
 #include "bignum.h"
@@ -73,3 +79,5 @@ rsa_decrypt(const struct rsa_private_key *key,
 
   return 1;
 }
+
+#endif /* WITH_PUBLIC_KEY */
diff --git a/rsa-encrypt.c b/rsa-encrypt.c
index ef2e72f3..66a08c0f 100644
--- a/rsa-encrypt.c
+++ b/rsa-encrypt.c
@@ -23,6 +23,12 @@
  * MA 02111-1307, USA.
  */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if WITH_PUBLIC_KEY
+
 #include "rsa.h"
 
 #include "bignum.h"
@@ -75,3 +81,5 @@ rsa_encrypt(const struct rsa_public_key *key,
 
   return 1;  
 }
+
+#endif /* WITH_PUBLIC_KEY */
-- 
GitLab