diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-10 15:37:03 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-10 18:37:03 -0500 |
commit | 60f264b0f293bfded7a0b4395715669d355a6185 (patch) | |
tree | a8fdf4f17f20115063e557eebf36b0f9dd1b7a63 /docs | |
parent | 90a557764542f2d939a8b0a61c74b299870fca6c (diff) | |
download | cryptography-60f264b0f293bfded7a0b4395715669d355a6185.tar.gz cryptography-60f264b0f293bfded7a0b4395715669d355a6185.tar.bz2 cryptography-60f264b0f293bfded7a0b4395715669d355a6185.zip |
add signature_hash_algorithm to OCSPResponse (#4681)
* add signature_hash_algorithm to OCSPResponse
* fix pointless asserts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/development/test-vectors.rst | 2 | ||||
-rw-r--r-- | docs/x509/ocsp.rst | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index eb9ba4b4..a10125ac 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -471,6 +471,8 @@ X.509 OCSP Test Vectors revocation reason. * ``x509/ocsp/resp-revoked-no-next-update.der`` - An OCSP response that contains a revoked certificate and no ``nextUpdate`` value. +* ``x509/ocsp/resp-invalid-signature-oid.der`` - An OCSP response that was + modified to contain an MD2 signature algorithm object identifier. Custom X.509 OCSP Test Vectors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 |