Esempio n. 1
0
func (self *Context) AddClientCA(cert *Certificate) int {
	return int(C.SSL_CTX_add_client_CA(self.Ctx, cert.X509))
}
Esempio n. 2
0
func (self *Context) AddClientCA(cert *x509.Certificate) int {
	return int(C.SSL_CTX_add_client_CA(self.Ctx, (*C.X509)(unsafe.Pointer(cert.GetX509()))))
}