From 0fefa19f80beb1292de34133b2cdf0bddfe0b91d Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 11 Feb 2021 21:31:42 +0000 Subject: [PATCH] fix the hack --- src/gam/auth/yubikey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/auth/yubikey.py b/src/gam/auth/yubikey.py index f6ea2ad5..6a8c5773 100644 --- a/src/gam/auth/yubikey.py +++ b/src/gam/auth/yubikey.py @@ -11,7 +11,7 @@ import ykman.descriptor # hack to avoid deprecation notice from cryptography # remove after this lands: # https://github.com/Yubico/yubikey-manager/pull/385 -sys.modules['ykman.utils.int_from_bytes'] = int.from_bytes +sys.modules['cryptography.utils'].int_from_bytes = int.from_bytes from ykman.piv import SLOT, ALGO, PivController, DEFAULT_MANAGEMENT_KEY from ykman.util import TRANSPORT