summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@davidben.net>2022-12-16 10:44:52 -0500
committerGitHub <noreply@github.com>2022-12-16 10:44:52 -0500
commitd2f0aec1033181ab2f256e78915cdfdccc31b977 (patch)
tree9a95433ea1a0f9e73fa6c08c814dafe772718bea /setup.py
parent4aae795360be0f8f85df32348bf1a6679b6828ca (diff)
downloadpyopenssl-d2f0aec1033181ab2f256e78915cdfdccc31b977.tar.gz
Fix CRL nextUpdate handling. (#1169)
* Fix CRL nextUpdate handling. When setting the nextUpdate field of a CRL, this code grabbed the nextUpdate ASN1_TIME field from the CRL and set its time. But nextUpdate is optional in a CRL so that field is usually NULL. But OpenSSL's ASN1_TIME_set_string succeeds when the destination argument is NULL, so it was silently a no-op. Given that, the call in a test to set the nextUpdate field suddenly starts working and sets the time to 2018, thus causing the CRL to be considered expired and breaking the test. So this change also changes the expiry year far into the future. Additionally, the other CRL and Revoked setters violate const in the API. Fixes #1168. * Replace self-check with an assert for coverage * Update src/OpenSSL/crypto.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions