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
9fe67cee
Kaydet (Commit)
9fe67cee
authored
Ock 04, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make SSLv23 the default version in ftplib (closes #23111)
üst
c1edb585
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ftplib.rst
Doc/library/ftplib.rst
+1
-1
ftplib.py
Lib/ftplib.py
+2
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/ftplib.rst
Dosyayı görüntüle @
9fe67cee
...
...
@@ -384,7 +384,7 @@ FTP_TLS Objects
.. attribute:: FTP_TLS.ssl_version
The SSL version to use (defaults to
*TLSv1*
).
The SSL version to use (defaults to
:attr:`ssl.PROTOCOL_SSLv23`
).
.. method:: FTP_TLS.auth()
...
...
Lib/ftplib.py
Dosyayı görüntüle @
9fe67cee
...
...
@@ -638,7 +638,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
,
timeout
=
_GLOBAL_DEFAULT_TIMEOUT
):
...
...
@@ -656,7 +656,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 @
9fe67cee
...
...
@@ -15,6 +15,8 @@ Core and Builtins
Library
-------
- Issue #23111: Maximize compatibility in protocol versions of ftplib.FTP_TLS.
- Issue #23112: Fix SimpleHTTPServer to correctly carry the query string and
fragment when it redirects to add a trailing slash.
...
...
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