Skip to content

Commit aa33a15

Browse files
committed
Change sslcontext.method setting in order to enforce TLS usage
this change reflects the same configuratin present in tor2web.utils.ssl and applied on globaleaks in globaleaks in relation to ticket: globaleaks/globaleaks-whistleblowing-software#1182
1 parent 95b74f0 commit aa33a15

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tor2web/utils/mail.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ def sendmail(authenticationUsername, authenticationSecret, fromAddress, toAddres
5656
@param smtpPort: the smtp port
5757
"""
5858
contextFactory = ClientContextFactory()
59-
contextFactory.method = SSL.SSLv3_METHOD
59+
60+
# evilaliv3:
61+
# in order to understand and before change this settings please
62+
# read the comment inside tor2web.utils.ssl
63+
contextFactory.method = SSL.SSLv23_METHOD
6064

6165
resultDeferred = defer.Deferred()
6266

tor2web/utils/ssl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def __init__(self, privateKeyFileName, certificateChainFileName, dhFileName, cip
126126
# This trick make openssl consider valid all TLS methods.
127127
self.sslmethod = SSL.SSLv23_METHOD
128128

129-
130129
self.dhFileName = dhFileName
131130
self.cipherList = cipherList
132131

0 commit comments

Comments
 (0)