]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: skip SystemRootsError test on Windows
authorMikkel Krautz <mikkel@krautz.dk>
Wed, 23 Jan 2013 17:20:17 +0000 (01:20 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 23 Jan 2013 17:20:17 +0000 (01:20 +0800)
commit249af5c85eb0ba05592ea3ffac71c4a2f824a216
tree171347ab866cc09774abb77152ac61b6c2dff728
parent34b533cd81dbad155a8e2265d91110434bbac2fb
crypto/x509: skip SystemRootsError test on Windows

On Windows, crypto/x509 passes through to Windows's CryptoAPI
to verify certificate chains. This method can't produce a
SystemRootsError, so make sure we always skip the test on
Windows.

This is needed because testVerify is called in both
TestGoVerify and TestSystemVerify on Windows - one is for
testing the Go verifier, the other one is for testing the
CryptoAPI verifier. The orignal CL tried to sidestep
this issue by setting systemSkip to true, but that only
affected TestSystemVerify.

R=golang-dev, agl, snaury, minux.ma
CC=golang-dev
https://golang.org/cl/7185043
src/pkg/crypto/x509/verify_test.go