mirror of
https://github.com/python/cpython.git
synced 2025-11-12 23:16:47 +00:00
Issue #19682: Fix compatibility issue with old version of OpenSSL that
was introduced by Issue #18379.
This commit is contained in:
parent
a282825bf6
commit
949ec14209
2 changed files with 9 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #19682: Fix compatibility issue with old version of OpenSSL that
|
||||||
|
was introduced by Issue #18379.
|
||||||
|
|
||||||
- Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
|
- Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
|
||||||
big-endian platforms.
|
big-endian platforms.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1024,9 +1024,15 @@ _get_crl_dp(X509 *certificate) {
|
||||||
int i, j, result;
|
int i, j, result;
|
||||||
PyObject *lst;
|
PyObject *lst;
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_NUMBER < 0x10001000L
|
||||||
|
dps = X509_get_ext_d2i(certificate, NID_crl_distribution_points,
|
||||||
|
NULL, NULL);
|
||||||
|
#else
|
||||||
/* Calls x509v3_cache_extensions and sets up crldp */
|
/* Calls x509v3_cache_extensions and sets up crldp */
|
||||||
X509_check_ca(certificate);
|
X509_check_ca(certificate);
|
||||||
dps = certificate->crldp;
|
dps = certificate->crldp;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (dps == NULL) {
|
if (dps == NULL) {
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue