예제 #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)))
}