From e16f9ab26d900251e6334bae4fbfb1cff0b9db2c Mon Sep 17 00:00:00 2001 From: Andrew Harding Date: Mon, 12 Oct 2015 14:56:55 -0600 Subject: [PATCH] added method to get verify code from cert store ctx Change-Id: I0a842d144b85756a2ad96df15c6cd25ce4761f62 --- ctx.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctx.go b/ctx.go index af0519e..5bb7e12 100644 --- a/ctx.go +++ b/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 {