mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
raise an error when STARTTLS fails
This commit is contained in:
parent
3d4d01f614
commit
46b32f307c
2 changed files with 8 additions and 0 deletions
|
@ -695,6 +695,11 @@ class SMTP:
|
||||||
self.ehlo_resp = None
|
self.ehlo_resp = None
|
||||||
self.esmtp_features = {}
|
self.esmtp_features = {}
|
||||||
self.does_esmtp = 0
|
self.does_esmtp = 0
|
||||||
|
else:
|
||||||
|
# RFC 3207:
|
||||||
|
# 501 Syntax error (no parameters allowed)
|
||||||
|
# 454 TLS not available due to temporary reason
|
||||||
|
raise SMTPResponseException(resp, reply)
|
||||||
return (resp, reply)
|
return (resp, reply)
|
||||||
|
|
||||||
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
|
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
|
||||||
|
|
|
@ -19,6 +19,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
|
||||||
|
Oststrom
|
||||||
|
|
||||||
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
|
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
|
||||||
|
|
||||||
- Issue #26012: Don't traverse into symlinks for ** pattern in
|
- Issue #26012: Don't traverse into symlinks for ** pattern in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue