mirror of
https://github.com/status-im/keycard-cli.git
synced 2025-02-28 20:00:38 +00:00
add CommandSet and parse application info
This commit is contained in:
parent
243bdcab81
commit
23d0937de1
@ -61,8 +61,11 @@ func (i *Initializer) Init() (*keycard.Secrets, error) {
|
||||
}
|
||||
|
||||
// Info returns a types.ApplicationInfo struct with info about the card.
|
||||
func (i *Initializer) Info() (*types.ApplicationInfo, error) {
|
||||
return keycard.Select(i.c, identifiers.KeycardAID)
|
||||
func (i *Initializer) Info() (types.ApplicationInfo, error) {
|
||||
cmdSet := keycard.NewCommandSet(i.c)
|
||||
err := cmdSet.Select()
|
||||
|
||||
return cmdSet.ApplicationInfo, err
|
||||
}
|
||||
|
||||
func (i *Initializer) initGPSecureChannel(sdaid []byte) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user