From 73cd392198ed800dcd20f67d838f8a451e2bdf8c Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 7 Aug 2015 14:08:01 -0500 Subject: assert not remaining in SKI classmethod --- src/cryptography/x509.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 6c9cd562..f54eccf4 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -691,6 +691,7 @@ class SubjectKeyIdentifier(object): 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. -- cgit v1.2.3