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
b64ae7bf
Kaydet (Commit)
b64ae7bf
authored
Mar 05, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.4 (#23476)
üst
2f0441f0
fdb19715
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
NEWS
Misc/NEWS
+3
-0
_ssl.c
Modules/_ssl.c
+9
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
b64ae7bf
...
...
@@ -13,6 +13,9 @@ Core and Builtins
Library
-------
- Issue #23476: In the ssl module, enable OpenSSL'
s
X509_V_FLAG_TRUSTED_FIRST
flag
on
certificate
stores
when
it
is
available
.
-
Issue
#
23576
:
Avoid
stalling
in
SSL
reads
when
EOF
has
been
reached
in
the
SSL
layer
but
the
underlying
connection
hasn
't been closed.
...
...
Modules/_ssl.c
Dosyayı görüntüle @
b64ae7bf
...
...
@@ -2199,6 +2199,15 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
sizeof
(
SID_CTX
));
#undef SID_CTX
#ifdef X509_V_FLAG_TRUSTED_FIRST
{
/* Improve trust chain building when cross-signed intermediate
certificates are present. See https://bugs.python.org/issue23476. */
X509_STORE
*
store
=
SSL_CTX_get_cert_store
(
self
->
ctx
);
X509_STORE_set_flags
(
store
,
X509_V_FLAG_TRUSTED_FIRST
);
}
#endif
return
(
PyObject
*
)
self
;
}
...
...
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