var tlsmaxrsasize = godebug.New("tlsmaxrsasize")
(n int)
| 1090 | //var tlsmaxrsasize = godebug.New("tlsmaxrsasize") |
| 1091 | |
| 1092 | func checkKeySize(n int) (max int, ok bool) { |
| 1093 | // if v := tlsmaxrsasize.Value(); v != "" { |
| 1094 | // if max, err := strconv.Atoi(v); err == nil { |
| 1095 | // if (n <= max) != (n <= defaultMaxRSAKeySize) { |
| 1096 | // tlsmaxrsasize.IncNonDefault() |
| 1097 | // } |
| 1098 | // return max, n <= max |
| 1099 | // } |
| 1100 | // } |
| 1101 | return defaultMaxRSAKeySize, n <= defaultMaxRSAKeySize |
| 1102 | } |
| 1103 | |
| 1104 | // verifyServerCertificate parses and verifies the provided chain, setting |
| 1105 | // c.verifiedChains and c.peerCertificates or sending the appropriate alert. |
no outgoing calls
no test coverage detected
searching dependent graphs…