Fix a compile warning.

Also have to include BN_CTX_new now that we're using it...


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@301 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2003-01-30 11:47:11 +00:00
parent e1dd74d872
commit 1c41278828
3 changed files with 3 additions and 5 deletions

View File

@ -385,8 +385,8 @@ int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
int BN_mod_exp2_mont(BIGNUM *r, BIGNUM *a1, BIGNUM *p1,BIGNUM *a2,
BIGNUM *p2,BIGNUM *m,BN_CTX *ctx,BN_MONT_CTX *m_ctx);
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, BIGNUM *p,
BIGNUM *m,BN_CTX *ctx);
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
const BIGNUM *m,BN_CTX *ctx);
int BN_mask_bits(BIGNUM *a,int n);
int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
#ifndef NO_FP_API

View File

@ -63,7 +63,6 @@
#include <assert.h>
#include "bn.h"
#if 0
BN_CTX *BN_CTX_new(void)
{
BN_CTX *ret;
@ -79,7 +78,6 @@ BN_CTX *BN_CTX_new(void)
ret->flags=BN_FLG_MALLOCED;
return(ret);
}
#endif
void BN_CTX_init(BN_CTX *ctx)
{

View File

@ -795,7 +795,7 @@ err:
#endif
/* The old fallback, simple version :-) */
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, BIGNUM *p, BIGNUM *m,
int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
BN_CTX *ctx)
{
int i,j,bits,ret=0,wstart,wend,window,wvalue,ts=0;