diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-12-01 21:59:40 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-12-01 21:59:40 +0000 |
commit | e65c2b9872d52e130e848ac0e9007878f1fb6c78 (patch) | |
tree | 688b5ed6f1b083e5f9083eaaed3b8d40ca378397 /crypto/bn/bn_recp.c | |
parent | 2fe9ab8e20e1480825cd5962ca516924f4f03f5e (diff) |
bn_fix_top() exists for compatibility's sake and is mapped to
bn_correct_top() or bn_check_top() depending on debug settings. For
internal source, all bn_fix_top()s should be converted one way or the other
depending on whether the use of bn_correct_top() is justified.
For BN_div_recp(), these cases should not require correction if the other
bignum functions are doing their jobs properly, so convert to
bn_check_top().
Diffstat (limited to 'crypto/bn/bn_recp.c')
-rw-r--r-- | crypto/bn/bn_recp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c index ea39677bc0..411dd60895 100644 --- a/crypto/bn/bn_recp.c +++ b/crypto/bn/bn_recp.c @@ -204,8 +204,8 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, ret=1; err: BN_CTX_end(ctx); - if(dv) bn_fix_top(dv); - if(rem) bn_fix_top(rem); + if(dv) bn_check_top(dv); + if(rem) bn_check_top(rem); return(ret); } |