aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-05 15:54:24 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-05 18:43:52 +0900
commitd37bbbcdfbbba46b7fe0af6a0630d1e05d21375b (patch)
tree103db84a65970a9e3c11189cf65d6ef4e91f3a9d /ext/openssl/ossl_pkey.c
parent139607100b53c42bbde83e5047587930ad8bb63b (diff)
downloadruby-d37bbbcdfbbba46b7fe0af6a0630d1e05d21375b.tar.gz
ext/openssl: BIGNUM and BN_GENCB is made opaque
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
-rw-r--r--ext/openssl/ossl_pkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c
index b236ef34cb..514d6de83d 100644
--- a/ext/openssl/ossl_pkey.c
+++ b/ext/openssl/ossl_pkey.c
@@ -27,7 +27,7 @@ ossl_generate_cb_2(int p, int n, BN_GENCB *cb)
struct ossl_generate_cb_arg *arg;
int state;
- arg = (struct ossl_generate_cb_arg *)cb->arg;
+ arg = (struct ossl_generate_cb_arg *)BN_GENCB_get_arg(cb);
if (arg->yield) {
ary = rb_ary_new2(2);
rb_ary_store(ary, 0, INT2NUM(p));