Subject: | Net-SSLeay svn revision -r481 causes incompatibility with openssl 1.1.0 - dereferencing incomplete type 'RSA {aka struct rsa_st}' |
Date: | Tue, 3 Jan 2017 08:45:41 +0100 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | eroen <net-ssleay [...] occam.eroen.eu> |
Hi!
I ran into this on current trunk while I was looking into a different issue:
...
In file included from /usr/lib64/perl5/5.24.1/x86_64-linux/CORE/perl.h:5562:0,
from SSLeay.xs:141:
SSLeay.xs: In function 'XS_Net__SSLeay_RSA_get_key_parameters':
SSLeay.xs:4984:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
XPUSHs(bn2sv(rsa->n));
^
...
This code was introduced in the latest svn revision, r481. Previous
revisions build successfully with openssl 1.1.0c.
From <https://wiki.openssl.org/index.php/1.1_API_Changes>:
If you want to access rsa->n you now have to do something like:
const BIGNUM *n;
RSA_get0_key(rsa, &n, NULL, NULL);
--
eroen