Add FreeBSD OpenSSL support exception

Checks for OpenSSL library on FreeBSD installations
This commit is contained in:
sunny-g 2013-06-16 22:10:04 -05:00
parent 391df043f9
commit 1a786de34e

View File

@ -423,7 +423,7 @@ except:
lib_path = path.join(sys._MEIPASS, "libeay32.dll")
OpenSSL = _OpenSSL(lib_path)
except:
if 'linux' in sys.platform or 'darwin' in sys.platform:
if 'linux' in sys.platform or 'darwin' in sys.platform or 'freebsd' in sys.platform:
try:
from ctypes.util import find_library
OpenSSL = _OpenSSL(find_library('ssl'))