diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 15:54:24 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 18:43:52 +0900 |
commit | d37bbbcdfbbba46b7fe0af6a0630d1e05d21375b (patch) | |
tree | 103db84a65970a9e3c11189cf65d6ef4e91f3a9d /ext/openssl/ossl_pkey.c | |
parent | 139607100b53c42bbde83e5047587930ad8bb63b (diff) | |
download | ruby-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.c | 2 |
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)); |