pyderasn.py | 4 ++-- diff --git a/pyderasn.py b/pyderasn.py index d37640c41ea5606be6ef6b2292807a97401bdd8d89fd3a187ea4cb6324efd4fc..37cbea66187d863b55e5db3b1c636b04d3ae6b1d5b899151c09e45be39fd5d24 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -429,7 +429,7 @@ ``SignedData`` and CMC's (:rfc:`5272`) ``PKIData`` and ``PKIResponse`` structures it may hold. Also, automatically decode ``controlSequence`` of ``PKIResponse``:: - content_info, tail = ContentInfo().decode(data, defines_by_path=( + content_info, tail = ContentInfo().decode(data, ctx={"defines_by_path": ( ( ("contentType",), ((("content",), {id_signedData: SignedData()}),), @@ -464,7 +464,7 @@ id_cmc_statusInfoV2: CMCStatusInfoV2(), id_cmc_transactionId: TransactionId(), })), ), - )) + )}) Pay attention for :py:class:`pyderasn.DecodePathDefBy` and ``any``. First function is useful for path construction when some automatic