-
Notifications
You must be signed in to change notification settings - Fork 419
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
Add the ability to set a custom verification time on X509Store #567
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6fd2adf
Add the ability to set a custom verification time on X509Store
tsileo d60db38
Fixed line too long
tsileo 2d4929b
Update the Changelog
tsileo 67c9bc8
Updated CHANGELOG
tsileo 90ed8cb
Cleanup tests
tsileo 85158ff
Fix tests
tsileo 67ec91a
Add mising gc call for X509_VERIFY_PARAM
tsileo 96f1394
Fix typo in docstring
tsileo 0f85779
Bumped minimum cryptography version to 1.6
tsileo 810bbe0
Fix cryptographyMinimum in tox.ini and tweaked docstrings
tsileo b0ff2ec
Fix docstring
tsileo db8f831
Tweak the docstring
tsileo a0bdd7a
Fix docstring (line too long)
tsileo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to add a
param = _ffi.gc(param, X509_VERIFY_PARAM_free)
to this.X509_STORE_set1_param
increfs it so without a corresponding free to decref after creation it will leak.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback!
When I try:
I got this exception on my system:
AttributeError: 'module' object has no attribute 'X509_VERIFY_PARAM_free'
It looks like
X509_VERIFY_PARAM_free
is not exported, I should do a PR on cryptography to export it? or something is wrong on my side?Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, you're quite right it isn't currently exported in cryptography. Please do submit a PR there!