]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] crypto/x509: copy and use adjusted syscall.CertChainPolicyPara
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 5 May 2018 05:28:56 +0000 (15:28 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 9 May 2018 14:46:40 +0000 (14:46 +0000)
commitf31a132e58427ed331005f1f9c53737ce4414577
treed69b22f789ecf3a5c553e2ec606d135b5521b85c
parent0ce6af9f1892cb6137e3c05fb0adf763d03f3fea
[release-branch.go1.9] crypto/x509: copy and use adjusted syscall.CertChainPolicyPara

As discussed in issue #21376, it is unsafe to have
syscall.CertChainPolicyPara.ExtraPolicyPara uintptr -
it has to be a pointer type. So copy syscall.CertChainPolicyPara
into crypto/tls package, make ExtraPolicyPara unsafe.Pointer,
and use new struct instead of syscall.CertChainPolicyPara.

Fixes #25034

Change-Id: If914af056cbbb0c4d93ffaa915b3d2cb5ecad0cd
Reviewed-on: https://go-review.googlesource.com/111715
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-on: https://go-review.googlesource.com/112179
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/root_windows.go