From: Bodo Möller Date: Thu, 8 Mar 2001 13:58:09 +0000 (+0000) Subject: Constify BN_value_one. X-Git-Tag: OpenSSL_0_9_6a-beta2~17^2~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98499135d762343c4419928359a372f6f3270b76;p=oweals%2Fopenssl.git Constify BN_value_one. --- diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index ed8cba5e3a..50bc303a34 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -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); diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index e37b85bfc5..a016cb7f53 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -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}; diff --git a/doc/crypto/BN_zero.pod b/doc/crypto/BN_zero.pod index 2f33876498..3c64a65697 100644 --- a/doc/crypto/BN_zero.pod +++ b/doc/crypto/BN_zero.pod @@ -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); diff --git a/doc/crypto/bn.pod b/doc/crypto/bn.pod index f7ce9dfd43..cbe3bc704f 100644 --- a/doc/crypto/bn.pod +++ b/doc/crypto/bn.pod @@ -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);