Skip to content

Commit

Permalink
Remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Aug 11, 2024
1 parent b09c0e4 commit 038b223
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions signxml/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,10 @@ def builder(self):
builder = builder.store(self.store)
if self.verification_time is not None:
builder = builder.time(self.verification_time)
# builder.extended_key_usage
return builder

@property
def verifier(self):
v = self.builder.build_client_verifier()
# print("CLIENT VERIFIER EKU:", v.extended_key_usage)
print(dir(self.builder))
return self.builder.build_client_verifier()

def _do_verify(self, cert_chain):
Expand All @@ -260,9 +256,7 @@ def verify(self, cert_chain):
# [ ] leaf, reversed(intermediates)
# [ ] intermediates, leaf
for cert in cert_chain:
print("***", cert.issuer, cert.subject, cert.not_valid_before_utc, cert.not_valid_after_utc)
eku_oid = x509.oid.ExtensionOID.EXTENDED_KEY_USAGE
print("*** EKUS", cert.subject.get_attributes_for_oid(eku_oid))
try:
return self._do_verify(cert_chain)
except x509.verification.VerificationError:
Expand Down

0 comments on commit 038b223

Please sign in to comment.