Browse Source

fix old version of OpenSSL

ignore warning
dev
破娃酱 8 years ago
parent
commit
85b6930d7d
  1. 3
      shadowsocks/crypto/openssl.py
  2. 6
      shadowsocks/shell.py

3
shadowsocks/crypto/openssl.py

@ -89,8 +89,7 @@ class OpenSSLCrypto(object):
self._ctx = None
if not loaded:
load_openssl()
cipher_name = common.to_bytes(cipher_name)
cipher = libcrypto.EVP_get_cipherbyname(cipher_name)
cipher = libcrypto.EVP_get_cipherbyname(common.to_bytes(cipher_name))
if not cipher:
cipher = load_cipher(cipher_name)
if not cipher:

6
shadowsocks/shell.py

@ -111,12 +111,6 @@ def check_config(config, is_local):
if config.get('server', '') in ['127.0.0.1', 'localhost']:
logging.warning('warning: server set to listen on %s:%s, are you sure?' %
(to_str(config['server']), config['server_port']))
if (config.get('method', '') or '').lower() == 'table':
logging.warning('warning: table is not safe; please use a safer cipher, '
'like AES-256-CFB')
if (config.get('method', '') or '').lower() == 'rc4':
logging.warning('warning: RC4 is not safe; please use a safer cipher, '
'like AES-256-CFB')
if config.get('timeout', 300) < 100:
logging.warning('warning: your timeout %d seems too short' %
int(config.get('timeout')))

Loading…
Cancel
Save