aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509/ocsp.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-01-10 15:37:03 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2019-01-10 18:37:03 -0500
commit60f264b0f293bfded7a0b4395715669d355a6185 (patch)
treea8fdf4f17f20115063e557eebf36b0f9dd1b7a63 /src/cryptography/x509/ocsp.py
parent90a557764542f2d939a8b0a61c74b299870fca6c (diff)
downloadcryptography-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 'src/cryptography/x509/ocsp.py')
-rw-r--r--src/cryptography/x509/ocsp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/x509/ocsp.py b/src/cryptography/x509/ocsp.py
index 2b0b1dc3..97933b1f 100644
--- a/src/cryptography/x509/ocsp.py
+++ b/src/cryptography/x509/ocsp.py
@@ -315,6 +315,12 @@ class OCSPResponse(object):
"""
@abc.abstractproperty
+ def signature_hash_algorithm(self):
+ """
+ Returns a HashAlgorithm corresponding to the type of the digest signed
+ """
+
+ @abc.abstractproperty
def signature(self):
"""
The signature bytes