Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rfc3414.py 1.1KB

12345678910111213141516171819202122232425262728
  1. #
  2. # This file is part of pyasn1-modules software.
  3. #
  4. # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
  5. # License: http://snmplabs.com/pyasn1/license.html
  6. #
  7. # SNMPv3 message syntax
  8. #
  9. # ASN.1 source from:
  10. # http://www.ietf.org/rfc/rfc3414.txt
  11. #
  12. from pyasn1.type import constraint
  13. from pyasn1.type import namedtype
  14. from pyasn1.type import univ
  15. class UsmSecurityParameters(univ.Sequence):
  16. componentType = namedtype.NamedTypes(
  17. namedtype.NamedType('msgAuthoritativeEngineID', univ.OctetString()),
  18. namedtype.NamedType('msgAuthoritativeEngineBoots',
  19. univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
  20. namedtype.NamedType('msgAuthoritativeEngineTime',
  21. univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
  22. namedtype.NamedType('msgUserName',
  23. univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstraint(0, 32))),
  24. namedtype.NamedType('msgAuthenticationParameters', univ.OctetString()),
  25. namedtype.NamedType('msgPrivacyParameters', univ.OctetString())
  26. )