summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-08-13 14:46:15 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-08-13 14:46:15 -0700
commit77acc3638722fb55744478c00efba07abd6d5a0b (patch)
tree234da9241561894627cbfb0f52a509edc9a12367
parent1110bc91457b410d0799285c1f8cb0e7bf43b68b (diff)
downloadpyopenssl-77acc3638722fb55744478c00efba07abd6d5a0b.tar.gz
Fixes #145 -- fixes loading pkcs7 data from ASN1
-rw-r--r--OpenSSL/crypto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index 54569ea..313a30a 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -2351,7 +2351,7 @@ def load_pkcs7_data(type, buffer):
if type == FILETYPE_PEM:
pkcs7 = _lib.PEM_read_bio_PKCS7(bio, _ffi.NULL, _ffi.NULL, _ffi.NULL)
elif type == FILETYPE_ASN1:
- pass
+ pkcs7 = _lib.d2i_PKCS7_bio(bio, _ffi.NULL)
else:
# TODO: This is untested.
_raise_current_error()