diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-13 20:19:03 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-13 20:19:03 -0400 |
commit | 89cc4dd5df4127108d8cb1ffdc8b655d98c9cf49 (patch) | |
tree | e95a6d589bc3678ebaacac78151a032419124a9d /src | |
parent | dba49b9e8c03110201916cd6cdc1ad48d8131c59 (diff) | |
download | cryptography-89cc4dd5df4127108d8cb1ffdc8b655d98c9cf49.tar.gz cryptography-89cc4dd5df4127108d8cb1ffdc8b655d98c9cf49.tar.bz2 cryptography-89cc4dd5df4127108d8cb1ffdc8b655d98c9cf49.zip |
wrong assert
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/encode_asn1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/encode_asn1.py b/src/cryptography/hazmat/backends/openssl/encode_asn1.py index 796a7dcb..b0e2e73e 100644 --- a/src/cryptography/hazmat/backends/openssl/encode_asn1.py +++ b/src/cryptography/hazmat/backends/openssl/encode_asn1.py @@ -528,7 +528,7 @@ def _encode_name_constraints(backend, name_constraints): def _encode_policy_constraints(backend, policy_constraints): pc = backend._lib.POLICY_CONSTRAINTS_new() - assert pc != backend._ffi.NULL + backend.openssl_assert(pc != backend._ffi.NULL) pc = backend._ffi.gc(pc, backend._lib.POLICY_CONSTRAINTS_free) if policy_constraints.require_explicit_policy is not None: pc.requireExplicitPolicy = _encode_asn1_int( |