OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
pyasn1_modules
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
65 bytes
11/21/2017 09:42:52 PM
rw-r--r--
📁
__pycache__
-
10/21/2019 03:49:49 PM
rwxr-xr-x
📄
pem.py
2 KB
08/05/2017 02:18:37 PM
rw-r--r--
📄
rfc1155.py
2.61 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1157.py
3.46 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1901.py
640 bytes
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1902.py
3.61 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1905.py
4.72 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2251.py
26.29 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2314.py
1.28 KB
01/26/2017 06:49:02 PM
rw-r--r--
📄
rfc2315.py
9.42 KB
11/21/2017 09:42:52 PM
rw-r--r--
📄
rfc2437.py
2.56 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2459.py
48.84 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2511.py
10.12 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2560.py
8.2 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3279.py
5.83 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3280.py
45.57 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3281.py
9.63 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3412.py
1.9 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3414.py
1.13 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3447.py
1.57 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3852.py
19.64 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc4210.py
27.71 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc4211.py
11.83 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5208.py
1.39 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5280.py
48.34 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5652.py
19.64 KB
08/05/2017 02:18:37 PM
rw-r--r--
📄
rfc6402.py
14.67 KB
11/23/2017 10:59:48 AM
rw-r--r--
Editing: rfc1902.py
Close
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # # SNMPv2c message syntax # # ASN.1 source from: # http://www.ietf.org/rfc/rfc1902.txt # from pyasn1.type import constraint from pyasn1.type import namedtype from pyasn1.type import tag from pyasn1.type import univ class Integer(univ.Integer): subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( -2147483648, 2147483647 ) class Integer32(univ.Integer): subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( -2147483648, 2147483647 ) class OctetString(univ.OctetString): subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueSizeConstraint( 0, 65535 ) class IpAddress(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x00) ) subtypeSpec = univ.OctetString.subtypeSpec + constraint.ValueSizeConstraint( 4, 4 ) class Counter32(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x01) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Gauge32(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x02) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Unsigned32(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x02) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class TimeTicks(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x03) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Opaque(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x04) ) class Counter64(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x06) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 18446744073709551615 ) class Bits(univ.OctetString): pass class ObjectName(univ.ObjectIdentifier): pass class SimpleSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('integer-value', Integer()), namedtype.NamedType('string-value', OctetString()), namedtype.NamedType('objectID-value', univ.ObjectIdentifier()) ) class ApplicationSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('ipAddress-value', IpAddress()), namedtype.NamedType('counter-value', Counter32()), namedtype.NamedType('timeticks-value', TimeTicks()), namedtype.NamedType('arbitrary-value', Opaque()), namedtype.NamedType('big-counter-value', Counter64()), # This conflicts with Counter32 # namedtype.NamedType('unsigned-integer-value', Unsigned32()), namedtype.NamedType('gauge32-value', Gauge32()) ) # BITS misplaced? class ObjectSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('simple', SimpleSyntax()), namedtype.NamedType('application-wide', ApplicationSyntax()) )