Skip to content

Instantly share code, notes, and snippets.

@slow-is-fast
Created March 9, 2018 16:37
Show Gist options
  • Select an option

  • Save slow-is-fast/bf58b676e953d13527f4d06cd5462be4 to your computer and use it in GitHub Desktop.

Select an option

Save slow-is-fast/bf58b676e953d13527f4d06cd5462be4 to your computer and use it in GitHub Desktop.
Incompatibility between OpenSSL 1.1.0 and 1.0.2

AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup

vim /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py

将第52行libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,) 改为libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)

再次搜索cleanup(全文件共2处,此处位于111行),将libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx) 改为libcrypto.EVP_CIPHER_CTX_reset(self._ctx)

save and restart shadowsocks service

reference: https://github.com/shadowsocks/shadowsocks/issues/679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment