aboutsummaryrefslogtreecommitdiff
path: root/crypto/rsa
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-30 23:33:40 +0000
committerUlf Möller <ulf@openssl.org>2000-01-30 23:33:40 +0000
commit51ca375e7e640c6f1441d74abcda731ef7306d0c (patch)
tree8b661d70f98b8d819edea5f777117ec7be03fab7 /crypto/rsa
parent1749d8a039e637a6ab06f30cd0351605b44dc625 (diff)
downloadopenssl-51ca375e7e640c6f1441d74abcda731ef7306d0c.zip
openssl-51ca375e7e640c6f1441d74abcda731ef7306d0c.tar.gz
openssl-51ca375e7e640c6f1441d74abcda731ef7306d0c.tar.bz2
Seek out and destroy another evil cast.
Diffstat (limited to 'crypto/rsa')
-rw-r--r--crypto/rsa/rsa_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_test.c b/crypto/rsa/rsa_test.c
index e5ae0c1..3a51d99 100644
--- a/crypto/rsa/rsa_test.c
+++ b/crypto/rsa/rsa_test.c
@@ -227,6 +227,10 @@ int main(int argc, char *argv[])
for (v = 0; v < 3; v++)
{
+#if 1
+ key = RSA_generate_key(512*(v+1),3,0,0);
+ clen=RSA_size(key);
+#else
key = RSA_new();
switch (v) {
case 0:
@@ -239,6 +243,7 @@ int main(int argc, char *argv[])
clen = key3(key, ctext_ex);
break;
}
+#endif
num = RSA_public_encrypt(plen, ptext_ex, ctext, key,
RSA_PKCS1_PADDING);