MustSSHKeyAlgoListFromStringList is identical to SSHKeyAlgoListFromStringList but panics on error.
(hostKeyAlgorithms []string)
| 244 | // MustSSHKeyAlgoListFromStringList is identical to SSHKeyAlgoListFromStringList but panics on |
| 245 | // error. |
| 246 | func MustSSHKeyAlgoListFromStringList(hostKeyAlgorithms []string) SSHKeyAlgoList { |
| 247 | l, err := SSHKeyAlgoListFromStringList(hostKeyAlgorithms) |
| 248 | if err != nil { |
| 249 | panic(err) |
| 250 | } |
| 251 | return l |
| 252 | } |
| 253 | |
| 254 | // Validate validates the list of ciphers to contain only supported items. |
| 255 | func (h SSHKeyAlgoList) Validate() error { |