Skip to content

Commit 1311acb

Browse files
committed
Add a comment explaining why we return
Thanks @leplatrem for the suggestion.
1 parent 67c403f commit 1311acb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

autograph_utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ def _check_name_constraints(self, current_cert, next_cert):
422422
cryptography.x509.NameConstraints
423423
).value
424424
except x509.ExtensionNotFound:
425+
# No name constraints. This cert is therefore OK to sign
426+
# any name whatsoever.
425427
return
426428

427429
name = next_cert.subject.get_attributes_for_oid(NameOID.COMMON_NAME)[0].value

0 commit comments

Comments
 (0)