projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate the recursive includes of bn.h from various API headers (asn1.h,
[oweals/openssl.git]
/
crypto
/
rsa
/
rsa_test.c
diff --git
a/crypto/rsa/rsa_test.c
b/crypto/rsa/rsa_test.c
index 5dee24b001239b52cdb053142ebb3b507e34e9c0..6f0a28aa25c1d799e227a82b1e5e6894a98e2a35 100644
(file)
--- a/
crypto/rsa/rsa_test.c
+++ b/
crypto/rsa/rsa_test.c
@@
-8,6
+8,7
@@
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/rand.h>
+#include <openssl/bn.h>
#ifdef OPENSSL_NO_RSA
int main(int argc, char *argv[])
{
#ifdef OPENSSL_NO_RSA
int main(int argc, char *argv[])
{
@@
-219,12
+220,12
@@
int main(int argc, char *argv[])
int clen = 0;
int num;
int clen = 0;
int num;
- RAND_seed(rnd_seed, sizeof rnd_seed); /* or OAEP may fail */
-
CRYPTO_malloc_debug_init();
CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL);
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
CRYPTO_malloc_debug_init();
CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL);
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
-
+
+ RAND_seed(rnd_seed, sizeof rnd_seed); /* or OAEP may fail */
+
plen = sizeof(ptext_ex) - 1;
for (v = 0; v < 3; v++)
plen = sizeof(ptext_ex) - 1;
for (v = 0; v < 3; v++)
@@
-310,8
+311,11
@@
int main(int argc, char *argv[])
CRYPTO_cleanup_all_ex_data();
ERR_remove_state(0);
CRYPTO_cleanup_all_ex_data();
ERR_remove_state(0);
- CRYPTO_mem_leaks_fp(std
out
);
+ CRYPTO_mem_leaks_fp(std
err
);
+#ifdef OPENSSL_SYS_NETWARE
+ if (err) printf("ERROR: %d\n", err);
+#endif
return err;
}
#endif
return err;
}
#endif