You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use the type from rfc2459, which includes an opentype. I've got a AttributeTypeAndValue from which I'd like to decode the value. The only way I know to do it currently is somewhat awkward.
value_bytes = part['value'].asOctets()
spec = part.getComponentType()['value'].openType[part['type']]
value = decoder.decode(value_bytes, asn1Spec=spec)[0]
I couldn't find any way documented. Is there one?
The text was updated successfully, but these errors were encountered:
You should just pass the decodeOpenTypes=True keyword parameter to main decode() function. It will automatically decode open types and replace Any fields with decoded structures.
I'd like to use the type from
rfc2459
, which includes an opentype. I've got aAttributeTypeAndValue
from which I'd like to decode the value. The only way I know to do it currently is somewhat awkward.I couldn't find any way documented. Is there one?
The text was updated successfully, but these errors were encountered: