From 31388c4a73fa4280b1e544648b35faf02ff4c2e2 Mon Sep 17 00:00:00 2001 From: rhe Date: Sun, 19 Jun 2016 05:31:28 +0000 Subject: 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 --- ext/openssl/ossl_pkey_dsa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/openssl/ossl_pkey_dsa.c') diff --git a/ext/openssl/ossl_pkey_dsa.c b/ext/openssl/ossl_pkey_dsa.c index 2824679053..333beae844 100644 --- a/ext/openssl/ossl_pkey_dsa.c +++ b/ext/openssl/ossl_pkey_dsa.c @@ -26,7 +26,7 @@ static inline int DSA_HAS_PRIVATE(DSA *dsa) { - BIGNUM *bn; + const BIGNUM *bn; DSA_get0_key(dsa, NULL, &bn); return !!bn; } @@ -280,7 +280,7 @@ static VALUE ossl_dsa_is_public(VALUE self) { DSA *dsa; - BIGNUM *bn; + const BIGNUM *bn; GetDSA(self, dsa); DSA_get0_key(dsa, &bn, NULL); @@ -402,7 +402,7 @@ ossl_dsa_get_params(VALUE self) { DSA *dsa; VALUE hash; - BIGNUM *p, *q, *g, *pub_key, *priv_key; + const BIGNUM *p, *q, *g, *pub_key, *priv_key; GetDSA(self, dsa); DSA_get0_pqg(dsa, &p, &q, &g); @@ -509,7 +509,7 @@ static VALUE ossl_dsa_sign(VALUE self, VALUE data) { DSA *dsa; - BIGNUM *dsa_q; + const BIGNUM *dsa_q; unsigned int buf_len; VALUE str; -- cgit v1.2.3