smallstep-certificates/policy/x509.go

15 lines
354 B
Go
Raw Normal View History

2022-01-17 22:36:13 +00:00
package policy
import (
"crypto/x509"
"net"
)
type X509NamePolicyEngine interface {
2022-03-31 14:12:29 +00:00
IsX509CertificateAllowed(cert *x509.Certificate) (bool, error)
IsX509CertificateRequestAllowed(csr *x509.CertificateRequest) (bool, error)
2022-01-17 22:36:13 +00:00
AreSANsAllowed(sans []string) (bool, error)
IsDNSAllowed(dns string) (bool, error)
IsIPAllowed(ip net.IP) (bool, error)
}