Home
last modified time | relevance | path

Searched refs:_ASN1Object (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
Dssl.py316 class _ASN1Object(namedtuple("_ASN1Object", "nid shortname longname oid")): class
322 return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False))
328 return super(_ASN1Object, cls).__new__(cls, *_nid2obj(nid))
334 return super(_ASN1Object, cls).__new__(cls, *_txt2obj(name, name=True))
337 class Purpose(_ASN1Object):
408 if not isinstance(purpose, _ASN1Object):
424 if not isinstance(purpose, _ASN1Object):
475 if not isinstance(purpose, _ASN1Object):
/external/python/cpython3/Lib/
Dssl.py446 class _ASN1Object(namedtuple("_ASN1Object", "nid shortname longname oid")): class
467 class Purpose(_ASN1Object, _Enum):
570 if not isinstance(purpose, _ASN1Object):
731 if not isinstance(purpose, _ASN1Object):
769 if not isinstance(purpose, _ASN1Object):
/external/python/cpython2/Lib/test/
Dtest_ssl.py621 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
627 self.assertIsInstance(val, ssl._ASN1Object)
628 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
630 val = ssl._ASN1Object.fromnid(129)
632 self.assertIsInstance(val, ssl._ASN1Object)
633 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
635 ssl._ASN1Object.fromnid(100000)
638 obj = ssl._ASN1Object.fromnid(i)
647 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
649 self.assertIsInstance(val, ssl._ASN1Object)
[all …]
/external/python/cpython3/Lib/test/
Dtest_ssl.py946 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
952 self.assertIsInstance(val, ssl._ASN1Object)
953 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
955 val = ssl._ASN1Object.fromnid(129)
957 self.assertIsInstance(val, ssl._ASN1Object)
958 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
960 ssl._ASN1Object.fromnid(100000)
963 obj = ssl._ASN1Object.fromnid(i)
972 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
974 self.assertIsInstance(val, ssl._ASN1Object)
[all …]