@@ -565,7 +565,7 @@ type mockAuthority struct {
565
565
getSSHRoots func () (* authority.SSHKeys , error )
566
566
getSSHFederation func () (* authority.SSHKeys , error )
567
567
getSSHConfig func (typ string , data map [string ]string ) ([]templates.Output , error )
568
- checkSSHHost func (principal string ) (bool , error )
568
+ checkSSHHost func (ctx context. Context , principal , token string ) (bool , error )
569
569
getSSHBastion func (user string , hostname string ) (* authority.Bastion , error )
570
570
version func () authority.Version
571
571
}
@@ -715,9 +715,9 @@ func (m *mockAuthority) GetSSHConfig(typ string, data map[string]string) ([]temp
715
715
return m .ret1 .([]templates.Output ), m .err
716
716
}
717
717
718
- func (m * mockAuthority ) CheckSSHHost (principal string ) (bool , error ) {
718
+ func (m * mockAuthority ) CheckSSHHost (ctx context. Context , principal , token string ) (bool , error ) {
719
719
if m .checkSSHHost != nil {
720
- return m .checkSSHHost (principal )
720
+ return m .checkSSHHost (ctx , principal , token )
721
721
}
722
722
return m .ret1 .(bool ), m .err
723
723
}
0 commit comments