Function
loadFirstSSHDirectiveValue
(directives []sshDirective, key string)
Source from the content-addressed store, hash-verified
| 983 | } |
| 984 | |
| 985 | func loadFirstSSHDirectiveValue(directives []sshDirective, key string) (string, bool) { |
| 986 | for _, item := range directives { |
| 987 | if item.InMatch || !strings.EqualFold(item.Key, key) { |
| 988 | continue |
| 989 | } |
| 990 | return item.Value, true |
| 991 | } |
| 992 | return "", false |
| 993 | } |
| 994 | |
| 995 | func loadSSHDirectiveValues(directives []sshDirective, key string) []string { |
| 996 | var values []string |
Tested by
no test coverage detected