(b []byte, system bool, depth uint8)
| 312 | } |
| 313 | |
| 314 | func decodeBytes(b []byte, system bool, depth uint8) (c *Config, err error) { |
| 315 | defer func() { |
| 316 | if r := recover(); r != nil { |
| 317 | if _, ok := r.(runtime.Error); ok { |
| 318 | panic(r) |
| 319 | } |
| 320 | if e, ok := r.(error); ok && e == ErrDepthExceeded { |
| 321 | err = e |
| 322 | return |
| 323 | } |
| 324 | err = errors.New(r.(string)) |
| 325 | } |
| 326 | }() |
| 327 | |
| 328 | c = parseSSH(lexSSH(b), system, depth) |
| 329 | return c, err |
| 330 | } |
| 331 | |
| 332 | // Config represents an SSH config file. |
| 333 | type Config struct { |
no test coverage detected