diff options
author | Ben Laurie <ben@openssl.org> | 1999-06-04 22:23:10 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-06-04 22:23:10 +0000 |
commit | 84c15db551ce1d167b901a3bde2b21880b084384 (patch) | |
tree | 77daf2efeb616ef657009c821046a6bd756e0c54 /crypto/bn/bn_add.c | |
parent | ca570cfdbcaf35ba7e2554fd18eda8cfab2176e4 (diff) |
Some constification and stacks that slipped through the cracks (how?).
Diffstat (limited to 'crypto/bn/bn_add.c')
-rw-r--r-- | crypto/bn/bn_add.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/bn/bn_add.c b/crypto/bn/bn_add.c index cd7d48d71e..c5ab066c9e 100644 --- a/crypto/bn/bn_add.c +++ b/crypto/bn/bn_add.c @@ -104,12 +104,12 @@ int BN_add(BIGNUM *r, BIGNUM *a, BIGNUM *b) } /* unsigned add of b to a, r must be large enough */ -int BN_uadd(BIGNUM *r, BIGNUM *a, BIGNUM *b) +int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { register int i; int max,min; BN_ULONG *ap,*bp,*rp,carry,t1; - BIGNUM *tmp; + const BIGNUM *tmp; bn_check_top(a); bn_check_top(b); @@ -164,7 +164,7 @@ int BN_uadd(BIGNUM *r, BIGNUM *a, BIGNUM *b) } /* unsigned subtraction of b from a, a must be larger than b. */ -int BN_usub(BIGNUM *r, BIGNUM *a, BIGNUM *b) +int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { int max,min; register BN_ULONG t1,t2,*ap,*bp,*rp; @@ -255,11 +255,11 @@ int BN_usub(BIGNUM *r, BIGNUM *a, BIGNUM *b) return(1); } -int BN_sub(BIGNUM *r, BIGNUM *a, BIGNUM *b) +int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { int max; int add=0,neg=0; - BIGNUM *tmp; + const BIGNUM *tmp; bn_check_top(a); bn_check_top(b); |