mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: fetch root CA from Windows store
R=rsc CC=golang-dev https://golang.org/cl/5281044
This commit is contained in:
parent
812249fe5e
commit
3153395ed0
6 changed files with 329 additions and 185 deletions
|
|
@ -221,6 +221,9 @@ func NewCallback(fn interface{}) uintptr
|
|||
//sys VirtualLock(addr uintptr, length uintptr) (errno int)
|
||||
//sys VirtualUnlock(addr uintptr, length uintptr) (errno int)
|
||||
//sys TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (errno int) = mswsock.TransmitFile
|
||||
//sys CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, errno int) = crypt32.CertOpenSystemStoreW
|
||||
//sys CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext) = crypt32.CertEnumCertificatesInStore
|
||||
//sys CertCloseStore(store Handle, flags uint32) (errno int) = crypt32.CertCloseStore
|
||||
|
||||
// syscall interface implementation for other packages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue