github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/tls/config_windows.go (about)

     1  //go:build windows
     2  // +build windows
     3  
     4  package tls
     5  
     6  import "crypto/x509"
     7  
     8  func (c *Config) getCertPool() (*x509.CertPool, error) {
     9  	if c.DisableSystemRoot {
    10  		return c.loadSelfCertPool(Certificate_AUTHORITY_VERIFY)
    11  	}
    12  
    13  	return nil, nil
    14  }