mirror of
https://github.com/containers/podman.git
synced 2025-06-01 09:06:44 +08:00
Vendor in latest c/common
Pull in updates made to the filters code for images. Filters now perform an AND operation except for th reference filter which does an OR operation for positive case but an AND operation for negative cases. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/ssh/connection_golang.go
generated
vendored
8
vendor/github.com/containers/common/pkg/ssh/connection_golang.go
generated
vendored
@ -23,6 +23,7 @@ import (
|
||||
"golang.org/x/crypto/ssh"
|
||||
"golang.org/x/crypto/ssh/agent"
|
||||
"golang.org/x/crypto/ssh/knownhosts"
|
||||
"golang.org/x/exp/maps"
|
||||
)
|
||||
|
||||
func golangConnectionCreate(options ConnectionCreateOptions) error {
|
||||
@ -262,7 +263,7 @@ func ValidateAndConfigure(uri *url.URL, iden string, insecureIsMachineConnection
|
||||
}
|
||||
}
|
||||
}
|
||||
var authMethods []ssh.AuthMethod // now we validate and check for the authorization methods, most notaibly public key authorization
|
||||
var authMethods []ssh.AuthMethod // now we validate and check for the authorization methods, most notably public key authorization
|
||||
if len(signers) > 0 {
|
||||
dedup := make(map[string]ssh.Signer)
|
||||
for _, s := range signers {
|
||||
@ -273,10 +274,7 @@ func ValidateAndConfigure(uri *url.URL, iden string, insecureIsMachineConnection
|
||||
dedup[fp] = s
|
||||
}
|
||||
|
||||
var uniq []ssh.Signer
|
||||
for _, s := range dedup {
|
||||
uniq = append(uniq, s)
|
||||
}
|
||||
uniq := maps.Values(dedup)
|
||||
authMethods = append(authMethods, ssh.PublicKeysCallback(func() ([]ssh.Signer, error) {
|
||||
return uniq, nil
|
||||
}))
|
||||
|
Reference in New Issue
Block a user