Skip to content

Commit e717bdd

Browse files
authored
https://github.com/solokeys/solo1-cli/pull/152
1 parent 930163a commit e717bdd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

solo/devices/base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from cryptography import x509
44
from cryptography.hazmat.backends import default_backend
55
from fido2.attestation import Attestation
6-
from fido2.ctap2 import CTAP2, CredentialManagement
6+
from fido2.ctap2 import Ctap2, CredentialManagement
77
from fido2.hid import CTAPHID
88
from fido2.utils import hmac_sha256
99
from fido2.webauthn import PublicKeyCredentialCreationOptions
@@ -76,7 +76,7 @@ def ping(self, data="pong"):
7676
def reset(
7777
self,
7878
):
79-
CTAP2(self.get_current_hid_device()).reset()
79+
Ctap2(self.get_current_hid_device()).reset()
8080

8181
def change_pin(self, old_pin, new_pin):
8282
client = self.get_current_fido_client()
@@ -114,7 +114,7 @@ def make_credential(self, pin=None):
114114
def cred_mgmt(self, pin):
115115
client = self.get_current_fido_client()
116116
token = client.client_pin.get_pin_token(pin)
117-
ctap2 = CTAP2(self.get_current_hid_device())
117+
ctap2 = Ctap2(self.get_current_hid_device())
118118
return CredentialManagement(ctap2, client.client_pin.protocol, token)
119119

120120
def enter_solo_bootloader(
@@ -137,11 +137,11 @@ def is_solo_bootloader(
137137
pass
138138

139139
def program_kbd(self, cmd):
140-
ctap2 = CTAP2(self.get_current_hid_device())
140+
ctap2 = Ctap2(self.get_current_hid_device())
141141
return ctap2.send_cbor(0x51, cmd)
142142

143143
def sign_hash(self, credential_id, dgst, pin):
144-
ctap2 = CTAP2(self.get_current_hid_device())
144+
ctap2 = Ctap2(self.get_current_hid_device())
145145
client = self.get_current_fido_client()
146146
if pin:
147147
pin_token = client.client_pin.get_pin_token(pin)

0 commit comments

Comments
 (0)