aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-07 14:08:01 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-08-07 14:08:01 -0500
commit73cd392198ed800dcd20f67d838f8a451e2bdf8c (patch)
tree8381a0d936a6b252eda8c4cdac535080cc75db1f /src
parentd4a7f062d7dc9330fb701086dd06ac81a5b1e3d5 (diff)
downloadcryptography-73cd392198ed800dcd20f67d838f8a451e2bdf8c.tar.gz
cryptography-73cd392198ed800dcd20f67d838f8a451e2bdf8c.tar.bz2
cryptography-73cd392198ed800dcd20f67d838f8a451e2bdf8c.zip
assert not remaining in SKI classmethod
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py1
1 files changed, 1 insertions, 0 deletions
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.