Add Windows TLS engine

This commit is contained in:
nekohasekai
2026-04-24 09:04:27 +08:00
committed by 世界
parent b40e8c5f19
commit 0807b71b14
35 changed files with 6513 additions and 488 deletions
+1
View File
@@ -10,6 +10,7 @@ import (
type CertificateStore interface {
LifecycleService
Pool() *x509.CertPool
ExclusiveAnchors() bool
}
func RootPoolFromContext(ctx context.Context) *x509.CertPool {
+17
View File
@@ -0,0 +1,17 @@
//go:build darwin && cgo
package adapter
import "unsafe"
type AppleAnchors interface {
Retain() AppleAnchors
Release()
// Ref returns the underlying CFArrayRef, or nil if the anchor set is empty.
Ref() unsafe.Pointer
}
type AppleCertificateStore interface {
CertificateStore
AppleAnchors() AppleAnchors
}