Skip to content

Conversation

endreszabo
Copy link

Balabit Zorp application level firewall relies on the del_extension function to remove attributes like CRL pathes from the mimicked certificates when doing man-in-the-middle traffic filtering.

Also needs the ffi lib (python-cryptograpy at hazmat/bindings/openssl/x509.py) to have the definition of:

X509_EXTENSION *X509_delete_ext(X509 *, int);

Balabit Zorp application level firewall relies on the del_extension function to remove attributes like CRL pathes from the mimicked  certificates when doing man-in-the-middle traffic filtering.

Also needs the ffi lib (python-cryptograpy at hazmat/bindings/openssl/x509.py) to have the definition of:

X509_EXTENSION *X509_delete_ext(X509 *, int);
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 95.23% when pulling e838dff on endreszabo:patch-1 into f3fc99e on pyca:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 95.23% when pulling e838dff on endreszabo:patch-1 into f3fc99e on pyca:master.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will leak memory. It needs to use X509_EXTENSION_free in conjunction with ffi.gc. Take a look at the method right above this for an example.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, really! Thanks for pointing that out.

@reaperhulk
Copy link
Member

This also needs unit tests. Thanks for your contribution so far!

@hynek
Copy link
Contributor

hynek commented Jan 4, 2016

First of all, please accept my sincere apologies for this PR not moving along as we’d like to. I’ve tried to come up with a long-term solution to the general x509 problem domain and would also welcome your feedback to this thread:

https://mail.python.org/pipermail/cryptography-dev/2015-December/000539.html

(please note that there’s already responses: https://mail.python.org/pipermail/cryptography-dev/2015-December/thread.html https://mail.python.org/pipermail/cryptography-dev/2016-January/thread.html ).

I really hope this could be a way to loosen the guardian knot that the pyOpenSSL’s x509 layer currently presents to us maintainers and lightens the frustrations for contributors like you.

@reaperhulk
Copy link
Member

Closing due to lack of activity.

@reaperhulk reaperhulk closed this May 16, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants