mirror of https://github.com/python/cpython
merge 3.4 (closes #25939)
This commit is contained in:
commit
1378f7ca68
|
@ -76,6 +76,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
|
||||
|
||||
- Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
|
||||
|
||||
- Issue #26117: The os.scandir() iterator now closes file descriptor not only
|
||||
|
|
|
@ -4198,7 +4198,9 @@ _ssl_enum_certificates_impl(PyModuleDef *module, const char *store_name)
|
|||
if (result == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
hStore = CertOpenSystemStore((HCRYPTPROV)NULL, store_name);
|
||||
hStore = CertOpenStore(CERT_STORE_PROV_SYSTEM_A, 0, (HCRYPTPROV)NULL,
|
||||
CERT_STORE_READONLY_FLAG | CERT_SYSTEM_STORE_LOCAL_MACHINE,
|
||||
store_name);
|
||||
if (hStore == NULL) {
|
||||
Py_DECREF(result);
|
||||
return PyErr_SetFromWindowsErr(GetLastError());
|
||||
|
@ -4284,7 +4286,9 @@ _ssl_enum_crls_impl(PyModuleDef *module, const char *store_name)
|
|||
if (result == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
hStore = CertOpenSystemStore((HCRYPTPROV)NULL, store_name);
|
||||
hStore = CertOpenStore(CERT_STORE_PROV_SYSTEM_A, 0, (HCRYPTPROV)NULL,
|
||||
CERT_STORE_READONLY_FLAG | CERT_SYSTEM_STORE_LOCAL_MACHINE,
|
||||
store_name);
|
||||
if (hStore == NULL) {
|
||||
Py_DECREF(result);
|
||||
return PyErr_SetFromWindowsErr(GetLastError());
|
||||
|
|
Loading…
Reference in New Issue