Пример #1
0
func (self *Context) AddClientCA(cert *Certificate) int {
	return int(C.SSL_CTX_add_client_CA(self.Ctx, cert.X509))
}
Пример #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()))))
}