aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-08-02 21:13:59 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-08-02 22:36:17 -0500
commit17c8900f0b38052d16864de493bd1d409cc94180 (patch)
tree4cb7465e7d07d2d2fe067cfd1d564978fc968945 /src
parent47e9408311768cfdae8199bb2572ad0bcacbbb2b (diff)
downloadcryptography-17c8900f0b38052d16864de493bd1d409cc94180.tar.gz
cryptography-17c8900f0b38052d16864de493bd1d409cc94180.tar.bz2
cryptography-17c8900f0b38052d16864de493bd1d409cc94180.zip
Add note to serial_number parameter about entropy
- Add reference to random-numbers.rst for easy intra-linking - Document critical parameter of CertificateBuilder.add_extension - Support InhibitAnyPolicy in the CertificateBuilder frontend but not in the backend - Slim down more tests - Fix up test that asserts the backend does not allow for unsupported extensions
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 5760aae7..9f6cda13 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -1720,6 +1720,8 @@ class CertificateBuilder(object):
extension = Extension(
OID_SUBJECT_ALTERNATIVE_NAME, critical, extension
)
+ elif isinstance(extension, InhibitAnyPolicy):
+ extension = Extension(OID_INHIBIT_ANY_POLICY, critical, extension)
else:
raise NotImplementedError('Unsupported X.509 extension.')