Пример #1
0
func (self *Context) SetVerifyDepth(depth int) {
	C.SSL_CTX_set_verify_depth(self.Ctx, C.int(depth))
}
Пример #2
0
// SetVerifyDepth controls how many certificates deep the certificate
// verification logic is willing to follow a certificate chain. See
// https://www.openssl.org/docs/ssl/SSL_CTX_set_verify.html
func (c *Ctx) SetVerifyDepth(depth int) {
	C.SSL_CTX_set_verify_depth(c.ctx, C.int(depth))
}