コード例 #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
ファイル: ctx.go プロジェクト: devsaurin/mongo-tools
// 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))
}