commit | 73cd392198ed800dcd20f67d838f8a451e2bdf8c | [log] [tgz] |
---|---|---|
author | Paul Kehrer <paul.l.kehrer@gmail.com> | Fri Aug 07 14:08:01 2015 -0500 |
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | Fri Aug 07 14:08:01 2015 -0500 |
tree | 8381a0d936a6b252eda8c4cdac535080cc75db1f | |
parent | d4a7f062d7dc9330fb701086dd06ac81a5b1e3d5 [diff] |
assert not remaining in SKI classmethod
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 6c9cd56..f54eccf 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py
@@ -691,6 +691,7 @@ spki, remaining = decoder.decode( serialized, asn1Spec=_SubjectPublicKeyInfo() ) + assert not remaining # the univ.BitString object is a tuple of bits. We need bytes and # pyasn1 really doesn't want to give them to us. To get it we'll # build an integer, hex it, then decode the hex.