Skip to content

Commit

Permalink
More Napoleon
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 13, 2024
1 parent 66b9847 commit f93a617
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/service_identity/cryptography.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ def extract_patterns(cert: Certificate) -> Sequence[CertificatePattern]:
"""
Extract all valid ID patterns from a certificate for service verification.
:param cert: The certificate to be dissected.
Args:
cert: The certificate to be dissected.
:return: List of IDs.
Returns:
List of IDs.
.. versionchanged:: 23.1.0
``commonName`` is not used as a fallback anymore.
Expand Down
6 changes: 4 additions & 2 deletions src/service_identity/pyopenssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ def extract_patterns(cert: X509) -> Sequence[CertificatePattern]:
"""
Extract all valid ID patterns from a certificate for service verification.
:param cert: The certificate to be dissected.
Args:
cert: The certificate to be dissected.
:return: List of IDs.
Returns:
List of IDs.
.. versionchanged:: 23.1.0
``commonName`` is not used as a fallback anymore.
Expand Down

0 comments on commit f93a617

Please sign in to comment.