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
5915b0f9
Kaydet (Commit)
5915b0f9
authored
Eki 03, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
also use openssl envvars to find certs on windows (closes #22449)
Patch by Christian Heimes and Alex Gaynor.
üst
7280561b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
ssl.py
Lib/ssl.py
+1
-2
test_ssl.py
Lib/test/test_ssl.py
+8
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ssl.py
Dosyayı görüntüle @
5915b0f9
...
...
@@ -390,8 +390,7 @@ class SSLContext(_SSLContext):
if
sys
.
platform
==
"win32"
:
for
storename
in
self
.
_windows_cert_stores
:
self
.
_load_windows_store_certs
(
storename
,
purpose
)
else
:
self
.
set_default_verify_paths
()
self
.
set_default_verify_paths
()
def
create_default_context
(
purpose
=
Purpose
.
SERVER_AUTH
,
*
,
cafile
=
None
,
...
...
Lib/test/test_ssl.py
Dosyayı görüntüle @
5915b0f9
...
...
@@ -1016,6 +1016,14 @@ class ContextTests(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
ctx
.
load_default_certs
,
None
)
self
.
assertRaises
(
TypeError
,
ctx
.
load_default_certs
,
'SERVER_AUTH'
)
def
test_load_default_certs_env
(
self
):
ctx
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_TLSv1
)
with
support
.
EnvironmentVarGuard
()
as
env
:
env
[
"SSL_CERT_DIR"
]
=
CAPATH
env
[
"SSL_CERT_FILE"
]
=
CERTFILE
ctx
.
load_default_certs
()
self
.
assertEqual
(
ctx
.
cert_store_stats
(),
{
"crl"
:
0
,
"x509"
:
1
,
"x509_ca"
:
0
})
def
test_create_default_context
(
self
):
ctx
=
ssl
.
create_default_context
()
self
.
assertEqual
(
ctx
.
protocol
,
ssl
.
PROTOCOL_SSLv23
)
...
...
Misc/NEWS
Dosyayı görüntüle @
5915b0f9
...
...
@@ -19,6 +19,9 @@ Core and Builtins
Library
-------
- Issue #22449: In the ssl.SSLContext.load_default_certs, consult the
enviromental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
- Issue #20076: Added non derived UTF-8 aliases to locale aliases table.
- Issue #20079: Added locales supported in glibc 2.18 to locale alias table.
...
...
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