mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-13 07:10:28 +00:00
15 lines
354 B
Go
15 lines
354 B
Go
package policy
|
|
|
|
import (
|
|
"crypto/x509"
|
|
"net"
|
|
)
|
|
|
|
type X509NamePolicyEngine interface {
|
|
IsX509CertificateAllowed(cert *x509.Certificate) (bool, error)
|
|
IsX509CertificateRequestAllowed(csr *x509.CertificateRequest) (bool, error)
|
|
AreSANsAllowed(sans []string) (bool, error)
|
|
IsDNSAllowed(dns string) (bool, error)
|
|
IsIPAllowed(ip net.IP) (bool, error)
|
|
}
|