Explorar el Código

[fix] SSL : SNI support

Alexandre Flament hace 10 años
padre
commit
201928d2b0
Se han modificado 6 ficheros con 15 adiciones y 11 borrados
  1. 5
    0
      requirements.txt
  2. 0
    4
      searx/engines/btdigg.py
  3. 0
    4
      searx/engines/kickass.py
  4. 0
    3
      searx/engines/photon.py
  5. 5
    0
      setup.py
  6. 5
    0
      versions.cfg

+ 5
- 0
requirements.txt Ver fichero

5
 pyyaml
5
 pyyaml
6
 pygments
6
 pygments
7
 python-dateutil
7
 python-dateutil
8
+ndg-httpsclient
9
+pyopenssl
10
+pyasn1
11
+pyasn1-modules
12
+certifi

+ 0
- 4
searx/engines/btdigg.py Ver fichero

29
     params['url'] = search_url.format(search_term=quote(query),
29
     params['url'] = search_url.format(search_term=quote(query),
30
                                       pageno=params['pageno']-1)
30
                                       pageno=params['pageno']-1)
31
 
31
 
32
-    # FIX: SSLError: hostname 'btdigg.org'
33
-    # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
34
-    params['verify'] = False
35
-
36
     return params
32
     return params
37
 
33
 
38
 
34
 

+ 0
- 4
searx/engines/kickass.py Ver fichero

34
     params['url'] = search_url.format(search_term=quote(query),
34
     params['url'] = search_url.format(search_term=quote(query),
35
                                       pageno=params['pageno'])
35
                                       pageno=params['pageno'])
36
 
36
 
37
-    # FIX: SSLError: hostname 'kickass.so'
38
-    # doesn't match either of '*.kickass.to', 'kickass.to'
39
-    params['verify'] = False
40
-
41
     return params
37
     return params
42
 
38
 
43
 
39
 

+ 0
- 3
searx/engines/photon.py Ver fichero

41
     # using searx User-Agent
41
     # using searx User-Agent
42
     params['headers']['User-Agent'] = searx_useragent()
42
     params['headers']['User-Agent'] = searx_useragent()
43
 
43
 
44
-    # FIX: SSLError: SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
45
-    params['verify'] = False
46
-
47
     return params
44
     return params
48
 
45
 
49
 
46
 

+ 5
- 0
setup.py Ver fichero

47
         'pygments',
47
         'pygments',
48
         'setuptools',
48
         'setuptools',
49
         'python-dateutil',
49
         'python-dateutil',
50
+        'pyopenssl',
51
+        'ndg-httpsclient',
52
+        'pyasn1',
53
+        'pyasn1-modules',
54
+        'certifi'
50
     ],
55
     ],
51
     extras_require={
56
     extras_require={
52
         'test': [
57
         'test': [

+ 5
- 0
versions.cfg Ver fichero

32
 unittest2 = 0.5.1
32
 unittest2 = 0.5.1
33
 waitress = 0.8.8
33
 waitress = 0.8.8
34
 zc.recipe.testrunner = 2.0.0
34
 zc.recipe.testrunner = 2.0.0
35
+pyopenssl = 0.15.1
36
+ndg-httpsclient = 0.3.3
37
+pyasn1 = 0.1.7
38
+pyasn1-modules = 0.0.5
39
+certifi = 14.05.14
35
 
40
 
36
 # Required by:
41
 # Required by:
37
 # WebTest==2.0.11
42
 # WebTest==2.0.11