aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_dh.c
diff options
context:
space:
mode:
authorrhe <rhe@ruby-lang.org>2016-06-19 05:31:28 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-06-19 23:25:32 +0900
commit9ee7725d95de5f48bd0e96d75d8689a7c9196e7a (patch)
treec4c70617bd424cb1abc14e5313d2cdee8889cfb5 /ext/openssl/ossl_pkey_dh.c
parentffa6307a2ac9ca63d7a14aa7eff9051ddee52c4f (diff)
downloadruby-openssl-9ee7725d95de5f48bd0e96d75d8689a7c9196e7a.tar.gz
openssl: add 'const's required in OpenSSL master
* ext/openssl/ossl_pkey.h, ext/openssl/ossl_pkey_dh.c, ext/openssl/ossl_pkey_dsa.c, ext/openssl/ossl_pkey_rsa.c: A few days ago, OpenSSL changed {DH,DSA,RSA}_get0_*() to take const BIGNUM **. https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=fd809cfdbd6e32b6b67b68c59f6d55fbed7a9327 [ruby-core:75225] [Feature #12324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 74402fb9..654d4797 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;