Rename interface to CertificateEnforcer and add tests.
This commit is contained in:
parent
64f26c0f40
commit
bfe1f4952d
4 changed files with 53 additions and 15 deletions
|
@ -489,7 +489,7 @@ type identityModifier struct {
|
|||
NotAfter time.Time
|
||||
}
|
||||
|
||||
func (m *identityModifier) Constrain(cert *x509.Certificate) error {
|
||||
func (m *identityModifier) Enforce(cert *x509.Certificate) error {
|
||||
cert.NotBefore = m.NotBefore
|
||||
cert.NotAfter = m.NotAfter
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue