mirror of
https://github.com/status-im/consul.git
synced 2025-01-29 23:15:08 +00:00
ca: make receiver variable name consistent
Every other method uses c not ca
This commit is contained in:
parent
73730d356c
commit
eaea56c7b2
@ -1539,12 +1539,12 @@ func (c *CAManager) SignCertificate(csr *x509.CertificateRequest, spiffeID conne
|
|||||||
return &reply, nil
|
return &reply, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ca *CAManager) checkExpired(pem string) error {
|
func (c *CAManager) checkExpired(pem string) error {
|
||||||
cert, err := connect.ParseCert(pem)
|
cert, err := connect.ParseCert(pem)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if cert.NotAfter.Before(ca.timeNow()) {
|
if cert.NotAfter.Before(c.timeNow()) {
|
||||||
return fmt.Errorf("certificate expired, expiration date: %s ", cert.NotAfter.String())
|
return fmt.Errorf("certificate expired, expiration date: %s ", cert.NotAfter.String())
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user