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 e5ae0c1f698bc3a2ff0e6e9b6ca2870e5f4709ee..6f0a28aa25c1d799e227a82b1e5e6894a98e2a35 100644
(file)
--- a/
crypto/rsa/rsa_test.c
+++ b/
crypto/rsa/rsa_test.c
@@
-3,12
+3,13
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include "
openssl/
e_os.h"
+#include "e_os.h"
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/rand.h>
-#ifdef NO_RSA
+#include <openssl/bn.h>
+#ifdef OPENSSL_NO_RSA
int main(int argc, char *argv[])
{
printf("No RSA support\n");
int main(int argc, char *argv[])
{
printf("No RSA support\n");
@@
-219,10
+220,12
@@
int main(int argc, char *argv[])
int clen = 0;
int num;
int clen = 0;
int num;
+ 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 */
RAND_seed(rnd_seed, sizeof rnd_seed); /* or OAEP may fail */
- CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
-
plen = sizeof(ptext_ex) - 1;
for (v = 0; v < 3; v++)
plen = sizeof(ptext_ex) - 1;
for (v = 0; v < 3; v++)
@@
-305,10
+308,14
@@
int main(int argc, char *argv[])
RSA_free(key);
}
RSA_free(key);
}
+ CRYPTO_cleanup_all_ex_data();
ERR_remove_state(0);
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