summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_pkey_dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_pkey_dh.c')
-rw-r--r--ext/openssl/ossl_pkey_dh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c
index 74402fb95e8..654d47973fe 100644
--- a/ext/openssl/ossl_pkey_dh.c
+++ b/ext/openssl/ossl_pkey_dh.c
@@ -249,7 +249,7 @@ static VALUE
ossl_dh_is_public(VALUE self)
{
DH *dh;
- BIGNUM *bn;
+ const BIGNUM *bn;
GetDH(self, dh);
DH_get0_key(dh, &bn, NULL);
@@ -268,7 +268,7 @@ static VALUE
ossl_dh_is_private(VALUE self)
{
DH *dh;
- BIGNUM *bn;
+ const BIGNUM *bn;
GetDH(self, dh);
DH_get0_key(dh, NULL, &bn);
@@ -352,7 +352,7 @@ ossl_dh_get_params(VALUE self)
{
DH *dh;
VALUE hash;
- BIGNUM *p, *q, *g, *pub_key, *priv_key;
+ const BIGNUM *p, *q, *g, *pub_key, *priv_key;
GetDH(self, dh);
DH_get0_pqg(dh, &p, &q, &g);
@@ -498,7 +498,7 @@ static VALUE
ossl_dh_compute_key(VALUE self, VALUE pub)
{
DH *dh;
- BIGNUM *pub_key, *dh_p;
+ const BIGNUM *pub_key, *dh_p;
VALUE str;
int len;