summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rsa-decrypt.c8
-rw-r--r--rsa-encrypt.c8
2 files changed, 16 insertions, 0 deletions
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 */