// GetCertificateStore returns the context's certificate store that will be // used for peer validation. func (c *Ctx) GetCertificateStore() *CertificateStore { // we don't need to dealloc the cert store pointer here, because it points // to a ctx internal. so we do need to keep the ctx around return &CertificateStore{ store: C.SSL_CTX_get_cert_store(c.ctx), ctx: c} }
func (self *Context) GetCertStore() *X509Store { return &X509Store{Store: C.SSL_CTX_get_cert_store(self.Ctx)} }
func NewX509Store(ctx unsafe.Pointer) *X509Store { cctx := (*C.SSL_CTX)(ctx) return &X509Store{Store: C.SSL_CTX_get_cert_store(cctx)} }