MCPcopy Create free account
hub / github.com/XTLS/REALITY / CertificateVerificationError

Struct CertificateVerificationError

common.go:1757–1761  ·  view source on GitHub ↗

CertificateVerificationError is returned when certificate verification fails during the handshake.

Source from the content-addressed store, hash-verified

1755
1756// CertificateVerificationError is returned when certificate verification fails during the handshake.
1757type CertificateVerificationError struct {
1758 // UnverifiedCertificates and its contents should not be modified.
1759 UnverifiedCertificates []*x509.Certificate
1760 Err error
1761}
1762
1763func (e *CertificateVerificationError) Error() string {
1764 return fmt.Sprintf("tls: failed to verify certificate: %s", e.Err)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected