Kaydet (Commit) 2e1b7fc9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

raise an error when STARTTLS fails

üst 391f1a42
......@@ -656,6 +656,11 @@ class SMTP:
self.ehlo_resp = None
self.esmtp_features = {}
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)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
......
......@@ -92,6 +92,9 @@ Core and Builtins
Library
-------
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
Oststrom
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the
locale.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment