From d6e1f73c9f0e6353123ed0572b792f44656cbe08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 17 May 2017 20:13:17 +0800 Subject: [PATCH] fix old version of OpenSSL --- shadowsocks/crypto/openssl.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/shadowsocks/crypto/openssl.py b/shadowsocks/crypto/openssl.py index aa11759..0a8ca53 100644 --- a/shadowsocks/crypto/openssl.py +++ b/shadowsocks/crypto/openssl.py @@ -67,8 +67,6 @@ def load_openssl(): def load_cipher(cipher_name): func_name = 'EVP_' + cipher_name.replace('-', '_') - if bytes != str: - func_name = str(func_name, 'utf-8') cipher = getattr(libcrypto, func_name, None) if cipher: cipher.restype = c_void_p