mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-24 02:46:44 +00:00
fix(BRIDGE-406): fixed faulty certificate chain validation logic; made certificate pin checks exclusive to leaf certs;
This commit is contained in:
@ -23,6 +23,6 @@ import "net"
|
||||
|
||||
// CheckCertificate returns whether the connection presents a known TLS certificate.
|
||||
// The QA implementation always returns nil.
|
||||
func (p *TLSPinChecker) CheckCertificate(conn net.Conn) error {
|
||||
func (p *TLSPinChecker) CheckCertificate(conn net.Conn, _ bool) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user