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