Browse Source

disable M2Crypto on Python 3

auth
clowwindy 10 years ago
parent
commit
810db996cd
  1. 2
      shadowsocks/crypto/m2.py

2
shadowsocks/crypto/m2.py

@ -33,6 +33,8 @@ try:
__import__('M2Crypto') __import__('M2Crypto')
except ImportError: except ImportError:
has_m2 = False has_m2 = False
if bytes != str:
has_m2 = False
def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1, def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1,

Loading…
Cancel
Save