obj, tail = self._decode(
v,
offset=offset + tlen + llen,
- decode_path=(),
+ decode_path=decode_path,
)
return obj, (tail if leavemm else tail.tobytes())
You have to make specification of sequence::
class Extension(Sequence):
- __slots__ = ()
schema = (
("extnID", ObjectIdentifier()),
("critical", Boolean(default=False)),
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: