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