Python _ssl.txt2obj() Examples

The following are 18 code examples of _ssl.txt2obj(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _ssl , or try the search function .
Example #1
Source File: ssl.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super().__new__(cls, *_txt2obj(name, name=True)) 
Example #2
Source File: ssl.py    From android_universal with MIT License 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super().__new__(cls, *_txt2obj(name, name=True)) 
Example #3
Source File: ssl.py    From android_universal with MIT License 5 votes vote down vote up
def __new__(cls, oid):
        return super().__new__(cls, *_txt2obj(oid, name=False)) 
Example #4
Source File: ssl.py    From unity-python with MIT License 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(name, name=True)) 
Example #5
Source File: ssl.py    From unity-python with MIT License 5 votes vote down vote up
def __new__(cls, oid):
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False)) 
Example #6
Source File: ssl.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(name, name=True)) 
Example #7
Source File: ssl.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def __new__(cls, oid):
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False)) 
Example #8
Source File: ssl.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super().__new__(cls, *_txt2obj(name, name=True)) 
Example #9
Source File: ssl.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, oid):
        return super().__new__(cls, *_txt2obj(oid, name=False)) 
Example #10
Source File: ssl.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def __new__(cls, oid):
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False)) 
Example #11
Source File: ssl.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def __new__(cls, oid):
        return super().__new__(cls, *_txt2obj(oid, name=False)) 
Example #12
Source File: ssl.py    From Imogen with MIT License 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super().__new__(cls, *_txt2obj(name, name=True)) 
Example #13
Source File: ssl.py    From Imogen with MIT License 5 votes vote down vote up
def __new__(cls, oid):
        return super().__new__(cls, *_txt2obj(oid, name=False)) 
Example #14
Source File: ssl.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super().__new__(cls, *_txt2obj(name, name=True)) 
Example #15
Source File: ssl.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, oid):
        return super().__new__(cls, *_txt2obj(oid, name=False)) 
Example #16
Source File: ssl.py    From oss-ftp with MIT License 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(name, name=True)) 
Example #17
Source File: ssl.py    From oss-ftp with MIT License 5 votes vote down vote up
def __new__(cls, oid):
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False)) 
Example #18
Source File: ssl.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def fromname(cls, name):
        """Create _ASN1Object from short name, long name or OID
        """
        return super(_ASN1Object, cls).__new__(cls, *_txt2obj(name, name=True))