forked from geertj/python-asn1
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
It seems it's impossible to write an [APPLICATION 1] IMPLICIT INTEGER value due to this:
File ".../python3.13/site-packages/asn1.py", line 243, in write
self._emit_length(len(value))
~~~^^^^^^^
TypeError: object of type 'int' has no len()
and this:
def _encode_value(self, cls, nr, value): # type: (int, int, any) -> bytes
"""Encode a value."""
if cls != Classes.Universal:
return value
How is this supposed to work? There is no documentation for IMPLICIT tagging. In fact, judging by the code it seems like only Universal class is supported for primitive types.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels