From 60f264b0f293bfded7a0b4395715669d355a6185 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 10 Jan 2019 15:37:03 -0800 Subject: add signature_hash_algorithm to OCSPResponse (#4681) * add signature_hash_algorithm to OCSPResponse * fix pointless asserts --- docs/x509/ocsp.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/x509') diff --git a/docs/x509/ocsp.rst b/docs/x509/ocsp.rst index 535ffdda..d3815d6f 100644 --- a/docs/x509/ocsp.rst +++ b/docs/x509/ocsp.rst @@ -426,6 +426,16 @@ Interfaces :raises ValueError: If ``response_status`` is not :class:`~cryptography.x509.ocsp.OCSPResponseStatus.SUCCESSFUL`. + .. attribute:: signature_hash_algorithm + + .. versionadded:: 2.5 + + :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` + + Returns the + :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` which + was used in signing this response. + .. attribute:: signature :type: bytes -- cgit v1.2.3