mirror of
https://github.com/hanzoai/porto.git
synced 2026-11-03 18:08:27 +00:00
20 lines
474 B
Go
20 lines
474 B
Go
package crlcache
|
|
|
|
import (
|
|
"crypto/x509"
|
|
)
|
|
|
|
// Verifier provides an interface to check revocation status
|
|
type Verifier interface {
|
|
// Update the cache
|
|
Update() error
|
|
|
|
// Verify returns OCSP status:
|
|
// ocsp.Revoked - the certificate found in CRL
|
|
// ocsp.Good - the certificate not found in a valid CRL
|
|
// ocsp.Unknown - no CRL or OCSP response found for the certificate
|
|
Verify(crt *x509.Certificate, issuer *x509.Certificate) (int, error)
|
|
}
|
|
|
|
// TODO: implement
|