Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: client/third_party/pyasn1-modules/pyasn1_modules/rfc3414.py

Issue 2471063002: swarming: Package ts_mon python library (and dependencies) in bot code. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # SNMPv3 message syntax
3 #
4 # ASN.1 source from:
5 # http://www.ietf.org/rfc/rfc3414.txt
6 #
7 from pyasn1.type import univ, namedtype, namedval, tag, constraint
8
9 class UsmSecurityParameters(univ.Sequence):
10 componentType = namedtype.NamedTypes(
11 namedtype.NamedType('msgAuthoritativeEngineID', univ.OctetString()),
12 namedtype.NamedType('msgAuthoritativeEngineBoots', univ.Integer().subtyp e(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
13 namedtype.NamedType('msgAuthoritativeEngineTime', univ.Integer().subtype (subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
14 namedtype.NamedType('msgUserName', univ.OctetString().subtype(subtypeSpe c=constraint.ValueSizeConstraint(0, 32))),
15 namedtype.NamedType('msgAuthenticationParameters', univ.OctetString()),
16 namedtype.NamedType('msgPrivacyParameters', univ.OctetString())
17 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698