32 lines
833 B
Nim
32 lines
833 B
Nim
|
type KeycardException* = ref object of Exception
|
||
|
error*: string
|
||
|
|
||
|
type KeycardStartException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardStopException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardSelectException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardPairException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardOpenSecureChannelException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardVerifyPINException* = ref object of KeycardException
|
||
|
pinRetry*: int64
|
||
|
|
||
|
type KeycardExportKeyException* = ref object of KeycardException
|
||
|
|
||
|
type KeycardApplicationInfo* = ref object
|
||
|
installed*: bool
|
||
|
initialized*: bool
|
||
|
instanceUID*: string
|
||
|
secureChannelPublicKey*: string
|
||
|
version*: int64
|
||
|
availableSlots*: int64
|
||
|
keyUID*: string
|
||
|
capabilities*: int64
|
||
|
|
||
|
type KeycardPairingInfo* = ref object
|
||
|
key*: string
|
||
|
index*: int64
|