Skip to content

Commit

Permalink
Fix calling of extensions OID
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Oct 2, 2024
1 parent aca822d commit 10c7369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sigstore_tsp/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _verify_leaf_certs(tsp_response: TimeStampResponse, opts: VerifyOpts) -> boo
critical_eku = False
for extension in leaf_certificate.extensions:
# EKUOID is the Extended Key Usage OID, per RFC 5280
if extension.oid() == cryptography.x509.ObjectIdentifier(val="2.5.26.37"):
if extension.oid == cryptography.x509.ObjectIdentifier(val="2.5.26.37"):
critical_eku = extension.critical

if not critical_eku:
Expand Down

0 comments on commit 10c7369

Please sign in to comment.