aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_oaep_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsa/rsa_oaep_test.c')
-rw-r--r--crypto/rsa/rsa_oaep_test.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_oaep_test.c b/crypto/rsa/rsa_oaep_test.c
index 4005aa5ed2..4dd078ddbe 100644
--- a/crypto/rsa/rsa_oaep_test.c
+++ b/crypto/rsa/rsa_oaep_test.c
@@ -3,8 +3,15 @@
#include <stdio.h>
#include <string.h>
#include <openssl/e_os.h>
-#include <openssl/rsa.h>
#include <openssl/err.h>
+#ifdef NO_RSA
+int main(int argc, char *argv[])
+{
+ printf("No RSA support\n");
+ return(0);
+}
+#else
+#include <openssl/rsa.h>
#define SetKey \
key->n = BN_bin2bn(n, sizeof(n)-1, key->n); \
@@ -291,3 +298,4 @@ int main()
}
return err;
}
+#endif