Skip to content

Commit

Permalink
docs/verification: fix transposed doc item
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Nov 13, 2023
1 parent 50d6523 commit 2531c79
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/x509/verification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@ chain building, etc.

The verifier's trust store.

.. method:: verify(leaf, intermediates)

Performs path validation on ``leaf``, returning a valid path
if one exists. The path is returned in leaf-first order:
the first member is ``leaf``, followed by the intermediates used
(if any), followed by a member of the ``store``.

:param leaf: The leaf :class:`~cryptography.x509.Certificate` to validate
:param intermediates: A :class:`list` of intermediate :class:`~cryptography.x509.Certificate` to attempt to use

:returns: A list containing a valid chain from ``leaf`` to a member of :class:`ServerVerifier.store`.

:raises VerificationError: If a valid chain cannot be constructed

.. class:: VerificationError

.. versionadded:: 42.0.0
Expand Down Expand Up @@ -122,17 +136,3 @@ chain building, etc.
:param subject: A :class:`Subject` to use in the verifier

:returns: An instance of :class:`ServerVerifier`

.. method:: verify(leaf, intermediates)

Performs path validation on ``leaf``, returning a valid path
if one exists. The path is returned in leaf-first order:
the first member is ``leaf``, followed by the intermediates used
(if any), followed by a member of the ``store``.

:param leaf: The leaf :class:`~cryptography.x509.Certificate` to validate
:param intermediates: A :class:`list` of intermediate :class:`~cryptography.x509.Certificate` to attempt to use

:returns: A list containing a valid chain from ``leaf`` to a member of :class:`ServerVerifier.store`.

:raises VerificationError: If a valid chain cannot be constructed

0 comments on commit 2531c79

Please sign in to comment.