]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - pyderasn.py
Pass decode_path while decoding explicit tags
[pyderasn.git] / pyderasn.py
index 8e7f0283503e0272f19a28e2f17805ad212299fa..32ce73c664a72155d64844ac42ef434a7ce1a709 100755 (executable)
@@ -807,7 +807,7 @@ class Obj(object):
             obj, tail = self._decode(
                 v,
                 offset=offset + tlen + llen,
-                decode_path=(),
+                decode_path=decode_path,
             )
         return obj, (tail if leavemm else tail.tobytes())
 
@@ -3619,7 +3619,7 @@ class Sequence(Obj):
             v = v_tail
             if spec.default is not None and value == spec.default:
                 # Encoded default values are not valid in DER,
-                # but we still allow that
+                # but we allow that anyway
                 continue
             values[name] = value
         if len(v) > 0: