Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 949ec14

Browse files
committed
Issue #19682: Fix compatibility issue with old version of OpenSSL that
was introduced by Issue #18379.
1 parent a282825 commit 949ec14

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ Core and Builtins
5959
Library
6060
-------
6161

62+
- Issue #19682: Fix compatibility issue with old version of OpenSSL that
63+
was introduced by Issue #18379.
64+
6265
- Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
6366
big-endian platforms.
6467

Modules/_ssl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,9 +1024,15 @@ _get_crl_dp(X509 *certificate) {
10241024
int i, j, result;
10251025
PyObject *lst;
10261026

1027+
#if OPENSSL_VERSION_NUMBER < 0x10001000L
1028+
dps = X509_get_ext_d2i(certificate, NID_crl_distribution_points,
1029+
NULL, NULL);
1030+
#else
10271031
/* Calls x509v3_cache_extensions and sets up crldp */
10281032
X509_check_ca(certificate);
10291033
dps = certificate->crldp;
1034+
#endif
1035+
10301036
if (dps == NULL) {
10311037
return Py_None;
10321038
}

0 commit comments

Comments
 (0)