mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-01-15 02:40:09 +08:00
added method to get verify code from cert store ctx
Change-Id: I0a842d144b85756a2ad96df15c6cd25ce4761f62
This commit is contained in:
parent
327ffad934
commit
e16f9ab26d
4
ctx.go
4
ctx.go
@ -380,6 +380,10 @@ type CertificateStoreCtx struct {
|
||||
ssl_ctx *Ctx
|
||||
}
|
||||
|
||||
func (self *CertificateStoreCtx) VerifyResult() VerifyResult {
|
||||
return VerifyResult(C.X509_STORE_CTX_get_error(self.ctx))
|
||||
}
|
||||
|
||||
func (self *CertificateStoreCtx) Err() error {
|
||||
code := C.X509_STORE_CTX_get_error(self.ctx)
|
||||
if code == C.X509_V_OK {
|
||||
|
Loading…
Reference in New Issue
Block a user