Skip to content

Commit 08dde6b

Browse files
committed
Add comment
1 parent 3f3604b commit 08dde6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/scti/handlers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@ func entryFromChain(chain []*x509.Certificate, isPrecert bool, timestamp uint64)
510510
// isPreIssuer indicates whether a certificate is a pre-cert issuer with the specific
511511
// certificate transparency extended key usage.
512512
func isPreIssuer(cert *x509.Certificate) bool {
513+
// Look for the extension in the Extensions field and not ExtKeyUsage
514+
// since the base TLS library does not recognize this extension as
515+
// an ExtKeyUsage.
513516
for _, ext := range cert.Extensions {
514517
if types.OIDExtKeyUsageCertificateTransparency.Equal(ext.Id) {
515518
return true

0 commit comments

Comments
 (0)