1 # Copyright (C) AB Strakt
2 # See LICENSE for details.
5 pyOpenSSL - A simple wrapper around the OpenSSL library
11 orig = sys.getdlopenflags()
12 except AttributeError:
13 from OpenSSL import crypto
26 flags = 2 | ctypes.RTLD_GLOBAL
29 flags = dl.RTLD_NOW | dl.RTLD_GLOBAL
32 flags = DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL
35 sys.setdlopenflags(flags)
36 from OpenSSL import crypto
37 sys.setdlopenflags(orig)
41 from OpenSSL import rand, SSL
42 from OpenSSL.version import __version__
45 'rand', 'crypto', 'SSL', 'tsafe', '__version__']