示例#1
0
文件: context.go 项目: postfix/go-ssl
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))
}