raise an error when STARTTLS fails
1 parent 391f1a4 commit 2e1b7fcFile tree Expand file treeCollapse file tree 2 files changedCopy full SHA for 2e1b7fc
+8
-0
lines changedFilter options
+8
-0
lines changed +5Lines changed: 5 additions & 0 deletions Original file line number Diff line number Diff line change
@@ -656,6 +656,11 @@ def starttls(self, keyfile=None, certfile=None):
656
656
self.ehlo_resp = None
657
657
self.esmtp_features = {}
658
658
self.does_esmtp = 0
659
+
else:
660
+
# RFC 3207:
661
+
# 501 Syntax error (no parameters allowed)
662
+
# 454 TLS not available due to temporary reason
663
+
raise SMTPResponseException(resp, reply)
659
664
return (resp, reply)
660
665
661
666
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
+3Lines changed: 3 additions & 0 deletions Original file line number Diff line number Diff line change
@@ -92,6 +92,9 @@ Core and Builtins
92
92
Library
93
93
-------
94
94
95
+
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
96
+
Oststrom
97
+
95
98
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the
96
99
locale.
97
100
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4