From f0c61b868c5cbc605e719789030d475baf2bddbc Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Thu, 18 Apr 2019 00:00:37 +0200 Subject: [PATCH] export Channel and SecureChannel from gp command set --- globalplatform/command_set.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/globalplatform/command_set.go b/globalplatform/command_set.go index d5af556..193b42a 100644 --- a/globalplatform/command_set.go +++ b/globalplatform/command_set.go @@ -143,6 +143,14 @@ func (cs *CommandSet) InstallForInstall(packageAID, appletAID, instanceAID, para return cs.checkOK(resp, err) } +func (cs *CommandSet) Channel() types.Channel { + return cs.c +} + +func (cs *CommandSet) SecureChannel() *SecureChannel { + return cs.sc +} + func (cs *CommandSet) initializeUpdate(hostChallenge []byte) error { cmd := NewCommandInitializeUpdate(hostChallenge) resp, err := cs.c.Send(cmd)