You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiler/natives/src/crypto/x509: Update package and tests for Go 1.9.
Skip new Go 1.9 Linux-only test TestEnvVars that depends on system
roots, which GopherJS doesn't support. This is quite okay, as they're
not supported on Windows either:
func SystemCertPool() (*CertPool, error) {
if runtime.GOOS == "windows" {
// Issue 16736, 18609:
return nil, errors.New("crypto/x509: system root pool is not available on Windows")
}
return loadSystemRoots()
}
Return non-nil error in loadSystemRoots so that x509.SystemCertPool
correctly reports a failure. As a result, need to skip
TestSystemCertPool now too.
There's no need to override execSecurityRoots, because nothing needs or
calls it (the things that do are overridden or skipped).
0 commit comments