projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
An incompatibility has always existed between the format used for RSA
[oweals/openssl.git]
/
crypto
/
rsa
/
rsa_chk.c
diff --git
a/crypto/rsa/rsa_chk.c
b/crypto/rsa/rsa_chk.c
index 91b91157983fe9e09025f7896314bec53c8dc82d..9d848db8c6c783f8718d86a0b86bbae2bb3f967d 100644
(file)
--- a/
crypto/rsa/rsa_chk.c
+++ b/
crypto/rsa/rsa_chk.c
@@
-53,7
+53,7
@@
#include <openssl/rsa.h>
#include <openssl/rsa.h>
-int RSA_check_key(RSA *key)
+int RSA_check_key(
const
RSA *key)
{
BIGNUM *i, *j, *k, *l, *m;
BN_CTX *ctx;
{
BIGNUM *i, *j, *k, *l, *m;
BN_CTX *ctx;
@@
-75,7
+75,7
@@
int RSA_check_key(RSA *key)
}
/* p prime? */
}
/* p prime? */
- r = BN_is_prime
(key->p, BN_prime_checks, NULL
, NULL, NULL);
+ r = BN_is_prime
_ex(key->p, BN_prime_checks
, NULL, NULL);
if (r != 1)
{
ret = r;
if (r != 1)
{
ret = r;
@@
-85,7
+85,7
@@
int RSA_check_key(RSA *key)
}
/* q prime? */
}
/* q prime? */
- r = BN_is_prime
(key->q, BN_prime_checks, NULL
, NULL, NULL);
+ r = BN_is_prime
_ex(key->q, BN_prime_checks
, NULL, NULL);
if (r != 1)
{
ret = r;
if (r != 1)
{
ret = r;