Jan Dittberner
63c3716b5b
small refactoring to unify package structure. Use crypto.rand for serial number generation in tests.
12 lines
314 B
Go
12 lines
314 B
Go
package revoking
|
|
|
|
import (
|
|
"crypto/x509/pkix"
|
|
)
|
|
|
|
// A Repository for storing certificate status information
|
|
type Repository interface {
|
|
// StoreRevocation stores information about a revoked certificate.
|
|
StoreRevocation(*pkix.RevokedCertificate) error
|
|
RevokedCertificates() ([]pkix.RevokedCertificate, error)
|
|
}
|