Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > e77cdbedfa0d9d32c499cd88b8e080ea > files > 1

python-paramiko-1.15.2-1.1.mga5.src.rpm

Fix compatibility with current python-crypto
https://github.com/paramiko/paramiko/pull/714

--- ./paramiko/transport.py
+++ ./paramiko/transport.py
@@ -1646,7 +1646,7 @@ class Transport (threading.Thread, Closi
         elif name.endswith("-ctr"):
             # CTR modes, we need a counter
             counter = Counter.new(nbits=self._cipher_info[name]['block-size'] * 8, initial_value=util.inflate_long(iv, True))
-            return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], iv, counter)
+            return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], '', counter)
         else:
             return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], iv)