# Copyright (C) AB Strakt # See LICENSE for details. """ pyOpenSSL - A simple wrapper around the OpenSSL library """ import sys try: orig = sys.getdlopenflags() except AttributeError: from OpenSSL import crypto else: try: import DLFCN except ImportError: try: import dl except ImportError: try: import ctypes except ImportError: flags = 2 | 256 else: flags = 2 | ctypes.RTLD_GLOBAL del ctypes else: flags = dl.RTLD_NOW | dl.RTLD_GLOBAL del dl else: flags = DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL del DLFCN sys.setdlopenflags(flags) from OpenSSL import crypto sys.setdlopenflags(orig) del orig, flags del sys from OpenSSL import rand, SSL from OpenSSL.version import __version__ __all__ = [ 'rand', 'crypto', 'SSL', 'tsafe', '__version__']
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
test | Folder | 0755 |
|
|
SSL.so | File | 67.02 KB | 0755 |
|
__init__.py | File | 965 B | 0644 |
|
__init__.pyc | File | 951 B | 0644 |
|
__init__.pyo | File | 951 B | 0644 |
|
crypto.so | File | 96.98 KB | 0755 |
|
rand.so | File | 13.13 KB | 0755 |
|
tsafe.py | File | 1010 B | 0644 |
|
tsafe.pyc | File | 1.62 KB | 0644 |
|
tsafe.pyo | File | 1.62 KB | 0644 |
|
version.py | File | 178 B | 0644 |
|
version.pyc | File | 255 B | 0644 |
|
version.pyo | File | 255 B | 0644 |
|