summaryrefslogtreecommitdiffstats
path: root/rsaref
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-06-04 22:23:10 +0000
committerBen Laurie <ben@openssl.org>1999-06-04 22:23:10 +0000
commit84c15db551ce1d167b901a3bde2b21880b084384 (patch)
tree77daf2efeb616ef657009c821046a6bd756e0c54 /rsaref
parentca570cfdbcaf35ba7e2554fd18eda8cfab2176e4 (diff)
Some constification and stacks that slipped through the cracks (how?).
Diffstat (limited to 'rsaref')
-rw-r--r--rsaref/rsaref.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rsaref/rsaref.c b/rsaref/rsaref.c
index b070c5684c..7677eb9fce 100644
--- a/rsaref/rsaref.c
+++ b/rsaref/rsaref.c
@@ -78,7 +78,8 @@ int RSA_ref_public_encrypt(int len, unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
int RSA_ref_public_decrypt(int len, unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
-static int BN_ref_mod_exp(BIGNUM *r,BIGNUM *a,BIGNUM *p,BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
+static int BN_ref_mod_exp(BIGNUM *r,BIGNUM *a,const BIGNUM *p,const BIGNUM *m,
+ BN_CTX *ctx, BN_MONT_CTX *m_ctx);
static int RSA_ref_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa);
static RSA_METHOD rsa_pkcs1_ref_meth={
"RSAref PKCS#1 RSA",
@@ -105,8 +106,8 @@ static int RSA_ref_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
return(0);
}
-static int BN_ref_mod_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p, BIGNUM *m,
- BN_CTX *ctx, BN_MONT_CTX *m_ctx)
+static int BN_ref_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
+ const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)
{
RSAREFerr(RSAREF_F_BN_REF_MOD_EXP,ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
return(0);