]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* rsa-decrypt.c: Make compilation conditional on WITH_PUBLIC_KEY.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 30 Dec 2002 21:09:31 +0000 (22:09 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 30 Dec 2002 21:09:31 +0000 (22:09 +0100)
* rsa-encrypt.c: Likewise.

Rev: src/nettle/rsa-decrypt.c:1.3
Rev: src/nettle/rsa-encrypt.c:1.4

rsa-decrypt.c
rsa-encrypt.c

index dfdf089f8f91d292c502914efff8e29f9b1489de..41f720a056ef3a2915116b8030c64f8b94fe01a7 100644 (file)
  * 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 */
index ef2e72f31129c0dba5aef83ea95ae432dc4c8b5b..66a08c0fabf7c8f4b6a8c3c699cc7af82ec257b4 100644 (file)
  * 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 */