- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for verifyServerCertificate (0.39 sec)
-
src/crypto/tls/handshake_client.go
} return max, n <= max } } return defaultMaxRSAKeySize, n <= defaultMaxRSAKeySize } // verifyServerCertificate parses and verifies the provided chain, setting // c.verifiedChains and c.peerCertificates or sending the appropriate alert. func (c *Conn) verifyServerCertificate(certificates [][]byte) error { activeHandles := make([]*activeCert, len(certificates))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 38.6K bytes - Viewed (0) -
src/crypto/tls/handshake_client_tls13.go
if hs.usingPSK { // Make sure the connection is still being verified whether or not this // is a resumption. Resumptions currently don't reverify certificates so // they don't call verifyServerCertificate. See Issue 31641. if c.config.VerifyConnection != nil { if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil { c.sendAlert(alertBadCertificate) return err } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 27.9K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
expectedErr := "tls: server sent certificate containing RSA key larger than 8192 bits" err := c.verifyServerCertificate([][]byte{testCert.Bytes}) if err == nil || err.Error() != expectedErr { t.Errorf("Conn.verifyServerCertificate unexpected error: want %q, got %q", expectedErr, err) } expectedErr = "tls: client sent certificate containing RSA key larger than 8192 bits"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0)