Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b2e3946d
Kaydet (Commit)
b2e3946d
authored
Şub 18, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
open the cert store readonly
Patch from Chi Hsuan Yen.
üst
1c2a7b59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
NEWS
Misc/NEWS
+2
-0
_ssl.c
Modules/_ssl.c
+6
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
b2e3946d
...
@@ -50,6 +50,8 @@ Core and Builtins
...
@@ -50,6 +50,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
- Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with
- Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with
Linux PID namespaces enabled.
Linux PID namespaces enabled.
...
...
Modules/_ssl.c
Dosyayı görüntüle @
b2e3946d
...
@@ -3653,7 +3653,9 @@ PySSL_enum_certificates(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -3653,7 +3653,9 @@ PySSL_enum_certificates(PyObject *self, PyObject *args, PyObject *kwds)
if
(
result
==
NULL
)
{
if
(
result
==
NULL
)
{
return
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
)
{
if
(
hStore
==
NULL
)
{
Py_DECREF
(
result
);
Py_DECREF
(
result
);
return
PyErr_SetFromWindowsErr
(
GetLastError
());
return
PyErr_SetFromWindowsErr
(
GetLastError
());
...
@@ -3741,7 +3743,9 @@ PySSL_enum_crls(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -3741,7 +3743,9 @@ PySSL_enum_crls(PyObject *self, PyObject *args, PyObject *kwds)
if
(
result
==
NULL
)
{
if
(
result
==
NULL
)
{
return
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
)
{
if
(
hStore
==
NULL
)
{
Py_DECREF
(
result
);
Py_DECREF
(
result
);
return
PyErr_SetFromWindowsErr
(
GetLastError
());
return
PyErr_SetFromWindowsErr
(
GetLastError
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment