forked from pool/python-Twisted
Accepting request 810151 from home:mcalabkova:branches:devel:languages:python
- Update to 20.3.0
* drop Python 2
* twisted.news is deprecated.
* twisted.conch.ssh now supports the curve25519-sha256 key exchange
algorithm (requires OpenSSL >= 1.1.0).
* many bugfixes and other miscelaneous fixes
- Fixed update-alternatives mechanism
- Added true-binary.patch
- Dropped python-38-xml-namespace.patch
- Reapplied python-38-hmac-digestmod.patch
OBS-URL: https://build.opensuse.org/request/show/810151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=91
This commit is contained in:
committed by
Git OBS Bridge
parent
221d5e0adf
commit
21fdee6018
@@ -52,28 +52,6 @@ Index: Twisted-19.10.0/src/twisted/cred/test/test_cramauth.py
|
||||
self.assertTrue(c.checkPassword(b'supersecret'))
|
||||
self.assertEqual(c.username, b"squirrel")
|
||||
|
||||
Index: Twisted-19.10.0/src/twisted/mail/_cred.py
|
||||
===================================================================
|
||||
--- Twisted-19.10.0.orig/src/twisted/mail/_cred.py
|
||||
+++ Twisted-19.10.0/src/twisted/mail/_cred.py
|
||||
@@ -7,6 +7,7 @@ Credential managers for L{twisted.mail}.
|
||||
|
||||
from __future__ import absolute_import, division
|
||||
|
||||
+from hashlib import md5
|
||||
import hmac
|
||||
|
||||
from zope.interface import implementer
|
||||
@@ -28,7 +29,8 @@ class CramMD5ClientAuthenticator:
|
||||
|
||||
|
||||
def challengeResponse(self, secret, chal):
|
||||
- response = hmac.HMAC(secret, chal).hexdigest().encode('ascii')
|
||||
+ response = hmac.HMAC(
|
||||
+ secret, chal, digestmod=md5).hexdigest().encode('ascii')
|
||||
return self.user + b' ' + response
|
||||
|
||||
|
||||
Index: Twisted-19.10.0/src/twisted/mail/test/test_pop3.py
|
||||
===================================================================
|
||||
--- Twisted-19.10.0.orig/src/twisted/mail/test/test_pop3.py
|
||||
|
||||
Reference in New Issue
Block a user