hasWeakMAC checks if any offered MAC algorithm is weak
(macs []string)
| 633 | |
| 634 | // hasWeakMAC checks if any offered MAC algorithm is weak |
| 635 | func hasWeakMAC(macs []string) bool { |
| 636 | for _, mac := range macs { |
| 637 | if weakMACs[mac] { |
| 638 | return true |
| 639 | } |
| 640 | } |
| 641 | return false |
| 642 | } |
| 643 | |
| 644 | // extractSoftwareVersion extracts the software version from SSH ident string |
| 645 | func extractSoftwareVersion(ident string) string { |