提交 98499135 编写于 作者: B Bodo Möller

Constify BN_value_one.

上级 3285076c
...@@ -320,7 +320,7 @@ typedef struct bn_recp_ctx_st ...@@ -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) ...@@ -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 ...@@ -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 ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册