Python pyasn1.type.namedtype.OptionalNamedType() Examples
The following are 4
code examples of pyasn1.type.namedtype.OptionalNamedType().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pyasn1.type.namedtype
, or try the search function
.
Example #1
Source File: asn1.py From CVE-2017-7494 with GNU General Public License v3.0 | 5 votes |
def _sequence_optional_component(name, tag_value, type, **subkwargs): return namedtype.OptionalNamedType(name, type.subtype( explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, tag_value), **subkwargs))
Example #2
Source File: asn1.py From cracke-dit with MIT License | 5 votes |
def _sequence_optional_component(name, tag_value, type, **subkwargs): return namedtype.OptionalNamedType(name, type.subtype( explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, tag_value), **subkwargs))
Example #3
Source File: asn1.py From Slackor with GNU General Public License v3.0 | 5 votes |
def _sequence_optional_component(name, tag_value, type, **subkwargs): return namedtype.OptionalNamedType(name, type.subtype( explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, tag_value), **subkwargs))
Example #4
Source File: asn1.py From PiBunny with MIT License | 5 votes |
def _sequence_optional_component(name, tag_value, type, **subkwargs): return namedtype.OptionalNamedType(name, type.subtype( explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, tag_value), **subkwargs))