X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=pyderasn.py;h=3868b61f60874d7c95b39e451be894cbe2f95258;hp=887f000d20b73afbee0a348af9b2ad3681a79433;hb=165e97910a69809f2a7dcc852b0229d0aa1ff157;hpb=16134d090d04ec041159fcb2dc5200421b38bb38 diff --git a/pyderasn.py b/pyderasn.py index 887f000..3868b61 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -429,7 +429,7 @@ For example, again for CMS, you want to automatically decode 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 @@ of ``PKIResponse``:: id_cmc_transactionId: TransactionId(), })), ), - )) + )}) Pay attention for :py:class:`pyderasn.DecodePathDefBy` and ``any``. First function is useful for path construction when some automatic