Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PyOpenSSL won't compile against newer OpenSSL versions #4

Closed
df-cryptostorm opened this issue May 11, 2015 · 3 comments
Closed

Comments

@df-cryptostorm
Copy link

On CentOS 6.5 using OpenSSL 1.0.2a, I received this error when trying to compile pyOpenSSL with:
python setup.py install

OpenSSL/crypto/crl.c:6: error: static declaration of 'X509_REVOKED_dup' follows non-static declaration
/usr/include/openssl/x509.h:751: note: previous declaration of 'X509_REVOKED_dup' was here

Looks like later OpenSSL versions use an "X509_REVOKED_dup" already.
(See https://github.com/openssl/openssl/blob/master/include/openssl/x509.h)

The quick/lazy fix for me was to change all "X509_REVOKED_dup" to "X509_REVOKED_dupe" in OpenSSL/crypto/crl.c. I.e.,

sed -e's/X509_REVOKED_dup/X509_REVOKED_dupe/g' -i OpenSSL/crypto/crl.c
(while in pyOpenSSL-0.13)

@sumanj
Copy link
Owner

sumanj commented May 13, 2015

Thanks for reporting this! Will fix it over this weekend.

@jantman
Copy link

jantman commented Jun 6, 2015

FYI upgrading to pyOpenSSL >= 0.14 should fix this, see pyca/pyopenssl#276

@sumanj
Copy link
Owner

sumanj commented Jun 24, 2015

Changed all "X509_REVOKED_dup" to "X509_REVOKED_dupe". Should work fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants