summaryrefslogtreecommitdiff
path: root/internal/ssh/client/simplecallback.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ssh/client/simplecallback.go')
-rw-r--r--internal/ssh/client/simplecallback.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/ssh/client/simplecallback.go b/internal/ssh/client/simplecallback.go
index 580fa36..fd0e95b 100644
--- a/internal/ssh/client/simplecallback.go
+++ b/internal/ssh/client/simplecallback.go
@@ -17,8 +17,9 @@ func NewSimpleCallback() (SimpleCallback, error) {
return SimpleCallback{}, nil
}
-// Wrap the host key callback.
-func (SimpleCallback) Wrap() ssh.HostKeyCallback {
+// Wrap the host key callback. ctx is accepted for interface compatibility
+// but the simple callback never blocks so it has nothing to abort.
+func (SimpleCallback) Wrap(_ context.Context) ssh.HostKeyCallback {
return func(server string, remote net.Addr, key ssh.PublicKey) error {
return nil
}