@@ -15,12 +15,10 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
15(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
15(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
19import logging
18import logging
20from os import environ
19from os import environ
21from os.path import realpath, dirname, join, abspath, isfile
20from os.path import realpath, dirname, join, abspath, isfile
22from io import open
21from io import open
23−from ssl import OPENSSL_VERSION_INFO, OPENSSL_VERSION
24from yaml import safe_load
22from yaml import safe_load
@@ -81,13 +79,6 @@ else:
82logger = logging.getLogger('searx')
80logger = logging.getLogger('searx')
83logger.debug('read configuration from %s', settings_path)
81logger.debug('read configuration from %s', settings_path)
84−# Workaround for openssl versions <1.0.2
85−# https://github.com/certifi/python-certifi/issues/26
86−if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2):
87− if hasattr(certifi, 'old_where'):
88− environ['REQUESTS_CA_BUNDLE'] = certifi.old_where()
89− logger.warning('You are using an old openssl version({0}), please upgrade above 1.0.2!'.format(OPENSSL_VERSION))
91logger.info('Initialisation done')
82logger.info('Initialisation done')
93if 'SEARX_SECRET' in environ:
84if 'SEARX_SECRET' in environ: