forked from TrueCloudLab/certificates
Fix typo in comment.
This commit is contained in:
parent
00cd0f5f21
commit
0a5dc237df
1 changed files with 3 additions and 2 deletions
|
@ -286,8 +286,9 @@ func (a *Authority) authorizeRenew(cert *x509.Certificate) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
var ok bool
|
var ok bool
|
||||||
// For backward compatibility this method will also succeed if the
|
// For backward compatibility this method will also succeed if the
|
||||||
// provisioner does not have an extension. LoadByCertificate returns the
|
// certificate does not have a provisioner extension. LoadByCertificate
|
||||||
// noop provisioner if this happens, and it allows certificate renewals.
|
// returns the noop provisioner if this happens, and it allows
|
||||||
|
// certificate renewals.
|
||||||
if p, ok = a.provisioners.LoadByCertificate(cert); !ok {
|
if p, ok = a.provisioners.LoadByCertificate(cert); !ok {
|
||||||
return errs.Unauthorized("authority.authorizeRenew: provisioner not found", opts...)
|
return errs.Unauthorized("authority.authorizeRenew: provisioner not found", opts...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue