added method to get verify code from cert store ctx

Change-Id: I0a842d144b85756a2ad96df15c6cd25ce4761f62
This commit is contained in:
Andrew Harding 2015-10-12 14:56:55 -06:00
parent 327ffad934
commit e16f9ab26d

4
ctx.go
View File

@ -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 {