示例#1
0
    def buildloaders(cls):
        # init the SSL module
        from pypy.module._ssl.interp_ssl import _init_ssl, constants, HAVE_OPENSSL_RAND
        _init_ssl()

        for constant, value in constants.iteritems():
            Module.interpleveldefs[constant] = "space.wrap(%r)" % value

        if HAVE_OPENSSL_RAND:
            Module.interpleveldefs['RAND_add'] = "interp_ssl.RAND_add"
            Module.interpleveldefs['RAND_status'] = "interp_ssl.RAND_status"
            Module.interpleveldefs['RAND_egd'] = "interp_ssl.RAND_egd"

        super(Module, cls).buildloaders()
示例#2
0
 def buildloaders(cls):
     # init the SSL module
     from pypy.module._ssl.interp_ssl import _init_ssl, constants, HAVE_OPENSSL_RAND
     _init_ssl()
     
     for constant, value in constants.iteritems():
         Module.interpleveldefs[constant] = "space.wrap(%r)" % value
         
     if HAVE_OPENSSL_RAND:
         Module.interpleveldefs['RAND_add'] = "interp_ssl.RAND_add"
         Module.interpleveldefs['RAND_status'] = "interp_ssl.RAND_status"
         Module.interpleveldefs['RAND_egd'] = "interp_ssl.RAND_egd"
     
     super(Module, cls).buildloaders()
示例#3
0
文件: __init__.py 项目: alkorzt/pypy
 def startup(self, space):
     from pypy.module._ssl.interp_ssl import _init_ssl
     _init_ssl()
示例#4
0
 def startup(self, space):
     from pypy.module._ssl.interp_ssl import _init_ssl
     _init_ssl()