hasWeakCipher checks if any offered cipher is weak
(ciphers []string)
| 623 | |
| 624 | // hasWeakCipher checks if any offered cipher is weak |
| 625 | func hasWeakCipher(ciphers []string) bool { |
| 626 | for _, cipher := range ciphers { |
| 627 | if weakCiphers[cipher] { |
| 628 | return true |
| 629 | } |
| 630 | } |
| 631 | return false |
| 632 | } |
| 633 | |
| 634 | // hasWeakMAC checks if any offered MAC algorithm is weak |
| 635 | func hasWeakMAC(macs []string) bool { |