Python _ssl.nid2obj() Examples

The following are 9 code examples of _ssl.nid2obj(). 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 ironpython2 with Apache License 2.0 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super(_ASN1Object, cls).__new__(cls, *_nid2obj(nid)) 
Example #2
Source File: ssl.py    From oss-ftp with MIT License 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super(_ASN1Object, cls).__new__(cls, *_nid2obj(nid)) 
Example #3
Source File: ssl.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super().__new__(cls, *_nid2obj(nid)) 
Example #4
Source File: ssl.py    From Imogen with MIT License 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super().__new__(cls, *_nid2obj(nid)) 
Example #5
Source File: ssl.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super().__new__(cls, *_nid2obj(nid)) 
Example #6
Source File: ssl.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super().__new__(cls, *_nid2obj(nid)) 
Example #7
Source File: ssl.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super(_ASN1Object, cls).__new__(cls, *_nid2obj(nid)) 
Example #8
Source File: ssl.py    From unity-python with MIT License 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super(_ASN1Object, cls).__new__(cls, *_nid2obj(nid)) 
Example #9
Source File: ssl.py    From android_universal with MIT License 5 votes vote down vote up
def fromnid(cls, nid):
        """Create _ASN1Object from OpenSSL numeric ID
        """
        return super().__new__(cls, *_nid2obj(nid))