aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-09 11:02:44 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-09 11:02:44 -0500
commitc58d8bcc6b6e5a6d6aafe59a7e90cee679222e76 (patch)
tree52dff64d223847880ba7345fe408970e5b8060e6 /src
parentf7d1b72c8ab1bd3f198965b9747794c82d270341 (diff)
downloadcryptography-c58d8bcc6b6e5a6d6aafe59a7e90cee679222e76.tar.gz
cryptography-c58d8bcc6b6e5a6d6aafe59a7e90cee679222e76.tar.bz2
cryptography-c58d8bcc6b6e5a6d6aafe59a7e90cee679222e76.zip
improve comment for ocsp_nocheck encoding
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/backend.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py
index 4ce6d6d0..3aa210d1 100644
--- a/src/cryptography/hazmat/backends/openssl/backend.py
+++ b/src/cryptography/hazmat/backends/openssl/backend.py
@@ -157,9 +157,8 @@ def _txt2obj_gc(backend, name):
def _encode_ocsp_nocheck(backend, ext):
"""
- The OCSP No Check extension is defined as a null ASN.1 value. We can just
- return that value directly here in the pp, r tuple form the other
- extension encoding functions use.
+ The OCSP No Check extension is defined as a null ASN.1 value. Rather than
+ calling OpenSSL we can return a Python bytestring value in a list.
"""
return [b"\x05\x00"], 2