From 10c7369a3df9493ec176a75b998c4992cf5b655c Mon Sep 17 00:00:00 2001 From: Alexis Date: Wed, 2 Oct 2024 15:42:22 +0200 Subject: [PATCH] Fix calling of extensions OID --- src/sigstore_tsp/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigstore_tsp/verify.py b/src/sigstore_tsp/verify.py index cfc8286..ab1a8aa 100644 --- a/src/sigstore_tsp/verify.py +++ b/src/sigstore_tsp/verify.py @@ -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: