diff options
author | rhe <rhe@ruby-lang.org> | 2016-06-19 05:31:28 +0000 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-06-19 23:25:32 +0900 |
commit | 9ee7725d95de5f48bd0e96d75d8689a7c9196e7a (patch) | |
tree | c4c70617bd424cb1abc14e5313d2cdee8889cfb5 /ext/openssl/ossl_pkey_rsa.c | |
parent | ffa6307a2ac9ca63d7a14aa7eff9051ddee52c4f (diff) | |
download | ruby-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_rsa.c')
-rw-r--r-- | ext/openssl/ossl_pkey_rsa.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_pkey_rsa.c b/ext/openssl/ossl_pkey_rsa.c index 1ee45d0f..60fa146b 100644 --- a/ext/openssl/ossl_pkey_rsa.c +++ b/ext/openssl/ossl_pkey_rsa.c @@ -26,7 +26,7 @@ static inline int RSA_HAS_PRIVATE(RSA *rsa) { - BIGNUM *p, *q; + const BIGNUM *p, *q; RSA_get0_factors(rsa, &p, &q); return p && q; /* d? why? */ @@ -398,7 +398,7 @@ static VALUE ossl_rsa_public_encrypt(int argc, VALUE *argv, VALUE self) { RSA *rsa; - BIGNUM *rsa_n; + const BIGNUM *rsa_n; int buf_len, pad; VALUE str, buffer, padding; @@ -430,7 +430,7 @@ static VALUE ossl_rsa_public_decrypt(int argc, VALUE *argv, VALUE self) { RSA *rsa; - BIGNUM *rsa_n; + const BIGNUM *rsa_n; int buf_len, pad; VALUE str, buffer, padding; @@ -462,7 +462,7 @@ static VALUE ossl_rsa_private_encrypt(int argc, VALUE *argv, VALUE self) { RSA *rsa; - BIGNUM *rsa_n; + const BIGNUM *rsa_n; int buf_len, pad; VALUE str, buffer, padding; @@ -496,7 +496,7 @@ static VALUE ossl_rsa_private_decrypt(int argc, VALUE *argv, VALUE self) { RSA *rsa; - BIGNUM *rsa_n; + const BIGNUM *rsa_n; int buf_len, pad; VALUE str, buffer, padding; @@ -534,7 +534,7 @@ ossl_rsa_get_params(VALUE self) { RSA *rsa; VALUE hash; - BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; + const BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; GetRSA(self, rsa); RSA_get0_key(rsa, &n, &e, &d); |