Re: check_key segfault

Paul Washburn <[email protected]> Fri, 10 Apr 2009 11:31:52 -0600
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
--001636e90f208ab786046736bd10
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello all,

It looks like this is a known bug that was addressed in the 0.19 release.

If anyone else needs to address it without upgrading (as I do), the fix is
quite simple:

$ diff EVP.py /usr/share/python-support/python-m2crypto/M2Crypto/EVP.py
258c258
<         rsa = RSA.RSA_pub(rsa_ptr, 1)
---
>         rsa = RSA.RSA(rsa_ptr, 1)

-- 
Paul
[email protected]

--001636e90f208ab786046736bd10
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello all,<br><br>It looks like this is a known bug that was addressed in t=
he 0.19 release.<br><br>If anyone else needs to address it without upgradin=
g (as I do), the fix is quite simple:<br><br>$ diff EVP.py /usr/share/pytho=
n-support/python-m2crypto/M2Crypto/EVP.py<br>
258c258<br>&lt;=A0=A0=A0=A0=A0=A0=A0=A0 rsa =3D RSA.RSA_pub(rsa_ptr, 1)<br>=
---<br>&gt;=A0=A0=A0=A0=A0=A0=A0=A0 rsa =3D RSA.RSA(rsa_ptr, 1)<br clear=3D=
"all"><br>-- <br>Paul<br><a href=3D"mailto:[email protected]">[email protected]=
</a> <br>

--001636e90f208ab786046736bd10--