forked from quic-go/quic-go
copy VerifyPeerCertificate from the tls.Config to the mint.Config
This commit is contained in:
@@ -76,6 +76,7 @@ func tlsToMintConfig(tlsConf *tls.Config, pers protocol.Perspective) (*mint.Conf
|
||||
mconf.ServerName = tlsConf.ServerName
|
||||
mconf.InsecureSkipVerify = tlsConf.InsecureSkipVerify
|
||||
mconf.Certificates = make([]*mint.Certificate, len(tlsConf.Certificates))
|
||||
mconf.VerifyPeerCertificate = tlsConf.VerifyPeerCertificate
|
||||
for i, certChain := range tlsConf.Certificates {
|
||||
mconf.Certificates[i] = &mint.Certificate{
|
||||
Chain: make([]*x509.Certificate, len(certChain.Certificate)),
|
||||
|
||||
Reference in New Issue
Block a user