summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-08 13:58:09 +0000
committerBodo Möller <bodo@openssl.org>2001-03-08 13:58:09 +0000
commit98499135d762343c4419928359a372f6f3270b76 (patch)
tree45987fd2764edb21df1b6c7d91d46926114fc18b /crypto/bn
parent3285076c8e2ad3399ed54389dc4c6d9fe39193f6 (diff)
Constify BN_value_one.
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn.h2
-rw-r--r--crypto/bn/bn_lib.c2
2 files changed, 2 insertions, 2 deletions
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};