Constify BN_value_one.

This commit is contained in:
Bodo Möller 2001-03-08 13:58:09 +00:00
parent 3285076c8e
commit 98499135d7
4 changed files with 4 additions and 4 deletions

View File

@ -320,7 +320,7 @@ typedef struct bn_recp_ctx_st
/*#define BN_ascii2bn(a) BN_hex2bn(a) */
/*#define BN_bn2ascii(a) BN_bn2hex(a) */
BIGNUM *BN_value_one(void);
const BIGNUM *BN_value_one(void);
char * BN_options(void);
BN_CTX *BN_CTX_new(void);
void BN_CTX_init(BN_CTX *c);

View File

@ -128,7 +128,7 @@ int BN_get_params(int which)
else return(0);
}
BIGNUM *BN_value_one(void)
const BIGNUM *BN_value_one(void)
{
static BN_ULONG data_one=1L;
static BIGNUM const_one={&data_one,1,1,0};

View File

@ -12,7 +12,7 @@ operations
int BN_zero(BIGNUM *a);
int BN_one(BIGNUM *a);
BIGNUM *BN_value_one(void);
const BIGNUM *BN_value_one(void);
int BN_set_word(BIGNUM *a, unsigned long w);
unsigned long BN_get_word(BIGNUM *a);

View File

@ -62,7 +62,7 @@ bn - multiprecision integer arithmetics
int BN_zero(BIGNUM *a);
int BN_one(BIGNUM *a);
BIGNUM *BN_value_one(void);
const BIGNUM *BN_value_one(void);
int BN_set_word(BIGNUM *a, unsigned long w);
unsigned long BN_get_word(BIGNUM *a);