Skip to content

Commit

Permalink
https://github.com/solokeys/solo1-cli/pull/152
Browse files Browse the repository at this point in the history
  • Loading branch information
ghagl authored Jun 6, 2023
1 parent 930163a commit e717bdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions solo/devices/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from fido2.attestation import Attestation
from fido2.ctap2 import CTAP2, CredentialManagement
from fido2.ctap2 import Ctap2, CredentialManagement
from fido2.hid import CTAPHID
from fido2.utils import hmac_sha256
from fido2.webauthn import PublicKeyCredentialCreationOptions
Expand Down Expand Up @@ -76,7 +76,7 @@ def ping(self, data="pong"):
def reset(
self,
):
CTAP2(self.get_current_hid_device()).reset()
Ctap2(self.get_current_hid_device()).reset()

def change_pin(self, old_pin, new_pin):
client = self.get_current_fido_client()
Expand Down Expand Up @@ -114,7 +114,7 @@ def make_credential(self, pin=None):
def cred_mgmt(self, pin):
client = self.get_current_fido_client()
token = client.client_pin.get_pin_token(pin)
ctap2 = CTAP2(self.get_current_hid_device())
ctap2 = Ctap2(self.get_current_hid_device())
return CredentialManagement(ctap2, client.client_pin.protocol, token)

def enter_solo_bootloader(
Expand All @@ -137,11 +137,11 @@ def is_solo_bootloader(
pass

def program_kbd(self, cmd):
ctap2 = CTAP2(self.get_current_hid_device())
ctap2 = Ctap2(self.get_current_hid_device())
return ctap2.send_cbor(0x51, cmd)

def sign_hash(self, credential_id, dgst, pin):
ctap2 = CTAP2(self.get_current_hid_device())
ctap2 = Ctap2(self.get_current_hid_device())
client = self.get_current_fido_client()
if pin:
pin_token = client.client_pin.get_pin_token(pin)
Expand Down

0 comments on commit e717bdd

Please sign in to comment.