export Channel and SecureChannel from gp command set

This commit is contained in:
Andrea Franz 2019-04-18 00:00:37 +02:00
parent a41d275957
commit f0c61b868c
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 8 additions and 0 deletions

View File

@ -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)