Constify BN_value_one.
This commit is contained in:
parent
3285076c8e
commit
98499135d7
@ -320,7 +320,7 @@ typedef struct bn_recp_ctx_st
|
|||||||
/*#define BN_ascii2bn(a) BN_hex2bn(a) */
|
/*#define BN_ascii2bn(a) BN_hex2bn(a) */
|
||||||
/*#define BN_bn2ascii(a) BN_bn2hex(a) */
|
/*#define BN_bn2ascii(a) BN_bn2hex(a) */
|
||||||
|
|
||||||
BIGNUM *BN_value_one(void);
|
const BIGNUM *BN_value_one(void);
|
||||||
char * BN_options(void);
|
char * BN_options(void);
|
||||||
BN_CTX *BN_CTX_new(void);
|
BN_CTX *BN_CTX_new(void);
|
||||||
void BN_CTX_init(BN_CTX *c);
|
void BN_CTX_init(BN_CTX *c);
|
||||||
|
@ -128,7 +128,7 @@ int BN_get_params(int which)
|
|||||||
else return(0);
|
else return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
BIGNUM *BN_value_one(void)
|
const BIGNUM *BN_value_one(void)
|
||||||
{
|
{
|
||||||
static BN_ULONG data_one=1L;
|
static BN_ULONG data_one=1L;
|
||||||
static BIGNUM const_one={&data_one,1,1,0};
|
static BIGNUM const_one={&data_one,1,1,0};
|
||||||
|
@ -12,7 +12,7 @@ operations
|
|||||||
int BN_zero(BIGNUM *a);
|
int BN_zero(BIGNUM *a);
|
||||||
int BN_one(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);
|
int BN_set_word(BIGNUM *a, unsigned long w);
|
||||||
unsigned long BN_get_word(BIGNUM *a);
|
unsigned long BN_get_word(BIGNUM *a);
|
||||||
|
@ -62,7 +62,7 @@ bn - multiprecision integer arithmetics
|
|||||||
|
|
||||||
int BN_zero(BIGNUM *a);
|
int BN_zero(BIGNUM *a);
|
||||||
int BN_one(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);
|
int BN_set_word(BIGNUM *a, unsigned long w);
|
||||||
unsigned long BN_get_word(BIGNUM *a);
|
unsigned long BN_get_word(BIGNUM *a);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user