コード例 #1
0
ファイル: context.go プロジェクト: postfix/go-ssl
func (self *Context) SetCertStore(store *X509Store) {
	C.SSL_CTX_set_cert_store(self.Ctx, store.Store)
}
コード例 #2
0
ファイル: context.go プロジェクト: runcom/gossl
func (self *Context) SetCertStore(store *x509.X509Store) {
	C.SSL_CTX_set_cert_store(self.Ctx, (*C.X509_STORE)(unsafe.Pointer(store.Store)))
}