Skip to content
Snippets Groups Projects
Commit 88486427 authored by Niels Möller's avatar Niels Möller
Browse files

* 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
parent 394839ae
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
* MA 02111-1307, USA. * MA 02111-1307, USA.
*/ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if WITH_PUBLIC_KEY
#include "rsa.h" #include "rsa.h"
#include "bignum.h" #include "bignum.h"
...@@ -73,3 +79,5 @@ rsa_decrypt(const struct rsa_private_key *key, ...@@ -73,3 +79,5 @@ rsa_decrypt(const struct rsa_private_key *key,
return 1; return 1;
} }
#endif /* WITH_PUBLIC_KEY */
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
* MA 02111-1307, USA. * MA 02111-1307, USA.
*/ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if WITH_PUBLIC_KEY
#include "rsa.h" #include "rsa.h"
#include "bignum.h" #include "bignum.h"
...@@ -75,3 +81,5 @@ rsa_encrypt(const struct rsa_public_key *key, ...@@ -75,3 +81,5 @@ rsa_encrypt(const struct rsa_public_key *key,
return 1; return 1;
} }
#endif /* WITH_PUBLIC_KEY */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment