• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This file is part of pyasn1-modules software.
3#
4# Created by Russ Housley.
5#
6# Copyright (c) 2019, Vigil Security, LLC
7# License: http://snmplabs.com/pyasn1/license.html
8#
9# Extensible Messaging and Presence Protocol (XMPP)
10#
11# ASN.1 source from:
12# https://www.rfc-editor.org/rfc/rfc6120.txt
13#
14
15from pyasn1.type import char
16from pyasn1.type import univ
17
18from pyasn1_modules import rfc5280
19
20MAX = float('inf')
21
22
23# XmppAddr Identifier Type as specified in Section 13.7.1.4. of RFC 6120
24
25id_pkix = rfc5280.id_pkix
26
27id_on = id_pkix + (8, )
28
29id_on_xmppAddr = id_on + (5, )
30
31
32class XmppAddr(char.UTF8String):
33    pass
34
35
36# Map of Other Name OIDs to Other Name is added to the
37# ones that are in rfc5280.py
38
39_anotherNameMapUpdate = {
40    id_on_xmppAddr: XmppAddr(),
41}
42
43rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
44