pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

yubikey-manager patch




Hi,

security/py-yubikey-manager doesn't work as-is neither with python3.9 nor 3.10,
here's a fix:

--- cli/util.py	2020-01-29 08:32:03.000000000 +0100
+++ /usr/pkg/lib/python3.10/site-packages/ykman/cli/util.py	2022-12-23 13:55:54.905314000 +0100
@@ -31,7 +31,8 @@
 import click
 import sys
 from ..util import parse_b32_key
-from collections import OrderedDict, MutableMapping
+from collections import OrderedDict
+from collections.abc import MutableMapping
 from cryptography.hazmat.primitives import serialization


--- opgp.py	2020-01-29 08:32:03.000000000 +0100
+++ /usr/pkg/lib/python3.10/site-packages/ykman/opgp.py	2022-12-23 14:02:14.511926126 +0100
@@ -37,7 +37,7 @@
 from binascii import b2a_hex
 from collections import namedtuple
 from cryptography import x509
-from cryptography.utils import int_to_bytes, int_from_bytes
+from cryptography.utils import int_to_bytes
 from cryptography.hazmat.backends import default_backend
 from cryptography.hazmat.primitives.serialization import (
     Encoding, PrivateFormat, NoEncryption
--- piv.py	2020-01-29 08:32:03.000000000 +0100
+++ /usr/pkg/lib/python3.10/site-packages/ykman/piv.py	2022-12-23 14:02:51.434101116 +0100
@@ -36,7 +36,7 @@
     ensure_not_cve201715361_vulnerable_firmware_version)
 from cryptography import x509
 from cryptography.exceptions import InvalidSignature
-from cryptography.utils import int_to_bytes, int_from_bytes
+from cryptography.utils import int_to_bytes
 from cryptography.hazmat.primitives import hashes
 from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
 from cryptography.hazmat.primitives.constant_time import bytes_eq


------------------------------------------------------------------------
Emile `iMil' Heitor <imil@{home.imil.net,NetBSD.org}> | https://imil.net



Home | Main Index | Thread Index | Old Index