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
36fe7926
Kaydet (Commit)
36fe7926
authored
Ara 30, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make PROTOCOL_SSLv23 the default protocol version for ftplib (closes #23111)
üst
3cd1af51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ftplib.py
Lib/ftplib.py
+2
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ftplib.py
Dosyayı görüntüle @
36fe7926
...
...
@@ -713,7 +713,7 @@ else:
'221 Goodbye.'
>>>
'''
ssl_version
=
ssl
.
PROTOCOL_
TLSv1
ssl_version
=
ssl
.
PROTOCOL_
SSLv23
def
__init__
(
self
,
host
=
''
,
user
=
''
,
passwd
=
''
,
acct
=
''
,
keyfile
=
None
,
certfile
=
None
,
context
=
None
,
...
...
@@ -743,7 +743,7 @@ else:
'''Set up secure control connection by using TLS/SSL.'''
if
isinstance
(
self
.
sock
,
ssl
.
SSLSocket
):
raise
ValueError
(
"Already using TLS"
)
if
self
.
ssl_version
==
ssl
.
PROTOCOL_TLSv1
:
if
self
.
ssl_version
>=
ssl
.
PROTOCOL_SSLv23
:
resp
=
self
.
voidcmd
(
'AUTH TLS'
)
else
:
resp
=
self
.
voidcmd
(
'AUTH SSL'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
36fe7926
...
...
@@ -41,6 +41,9 @@ Core and Builtins
Library
-------
- Issue #23111: In the ftplib, make ssl.PROTOCOL_SSLv23 the default protocol
version.
- Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
instead of reading /dev/urandom, to get pseudo-random bytes.
...
...
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