Update Dependencies (#390)
Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: Norwin <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/390 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
24
vendor/github.com/kevinburke/ssh_config/validators.go
generated
vendored
24
vendor/github.com/kevinburke/ssh_config/validators.go
generated
vendored
@@ -160,3 +160,27 @@ var defaults = map[string]string{
|
||||
strings.ToLower("VisualHostKey"): "no",
|
||||
strings.ToLower("XAuthLocation"): "/usr/X11R6/bin/xauth",
|
||||
}
|
||||
|
||||
// these identities are used for SSH protocol 2
|
||||
var defaultProtocol2Identities = []string{
|
||||
"~/.ssh/id_dsa",
|
||||
"~/.ssh/id_ecdsa",
|
||||
"~/.ssh/id_ed25519",
|
||||
"~/.ssh/id_rsa",
|
||||
}
|
||||
|
||||
// these directives support multiple items that can be collected
|
||||
// across multiple files
|
||||
var pluralDirectives = map[string]bool{
|
||||
"CertificateFile": true,
|
||||
"IdentityFile": true,
|
||||
"DynamicForward": true,
|
||||
"RemoteForward": true,
|
||||
"SendEnv": true,
|
||||
"SetEnv": true,
|
||||
}
|
||||
|
||||
// SupportsMultiple reports whether a directive can be specified multiple times.
|
||||
func SupportsMultiple(key string) bool {
|
||||
return pluralDirectives[strings.ToLower(key)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user