示例#1
0
文件: context.go 项目: postfix/go-ssl
func (self *Context) AddClientCA(cert *Certificate) int {
	return int(C.SSL_CTX_add_client_CA(self.Ctx, cert.X509))
}
示例#2
0
文件: context.go 项目: runcom/gossl
func (self *Context) AddClientCA(cert *x509.Certificate) int {
	return int(C.SSL_CTX_add_client_CA(self.Ctx, (*C.X509)(unsafe.Pointer(cert.GetX509()))))
}