Apply suggestions from code review

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
This commit is contained in:
Mariano Cano 2022-04-12 14:44:55 -07:00 committed by GitHub
parent 1880b4b2d0
commit 00cd0f5f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -287,7 +287,7 @@ func (a *Authority) authorizeRenew(cert *x509.Certificate) error {
var ok bool
// For backward compatibility this method will also succeed if the
// provisioner does not have an extension. LoadByCertificate returns the
// noop provisioner if this happens, and it allow certificate renewals.
// noop provisioner if this happens, and it allows certificate renewals.
if p, ok = a.provisioners.LoadByCertificate(cert); !ok {
return errs.Unauthorized("authority.authorizeRenew: provisioner not found", opts...)
}

View file

@ -62,7 +62,7 @@ func (a *Authority) unsafeLoadProvisionerFromExtension(crt *x509.Certificate) (p
}
func (a *Authority) unsafeLoadProvisionerFromDatabase(crt *x509.Certificate) (provisioner.Interface, error) {
// certificateDataGetter is an interface that can be use to retrieve the
// certificateDataGetter is an interface that can be used to retrieve the
// provisioner from a db or a linked ca.
type certificateDataGetter interface {
GetCertificateData(string) (*db.CertificateData, error)