Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openssl support for optware and entware router #782

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Add openssl support for optware and entware router #782

merged 1 commit into from
Jan 20, 2017

Conversation

cxgreat2014
Copy link
Contributor

Add "/opt/lib/libcrypto.so.1.0.0" support for optware and entware router

@ysc3839
Copy link
Contributor

ysc3839 commented Jan 20, 2017

I tested. There's two versions of libcrypto in my router. /lib/libcrypt-0.9.33.2.so(version 01000115F) and /lib/libcrypto.so.1.0.0(version 0100020AF).

Benchmark:

OpenSSL version 01000115F
<CDLL '/usr/local/ssl/lib/libcrypto.so', handle 804c58 at 7d5f00>
100x Verified True 36.356418848
OpenSSL version 0100020AF
<CDLL '/usr/local/ssl/lib/libcrypto.so.1.0.0', handle 9098d8 at 842720>
100x Verified True 27.0174210072

(In fact it's 1000x. for i in range(1000):)

@cxgreat2014
Copy link
Contributor Author

cxgreat2014 commented Jan 20, 2017

@ysc3839 if python -c "import ctypes.util; print ctypes.util.find_library('crypto')" work on your device, we needn't to do other change

@ysc3839
Copy link
Contributor

ysc3839 commented Jan 20, 2017

There's two versions of libcrypto. One is from the firmware and the other one is from Entware. The one from Entware is newer and faster.

@HelloZeroNet HelloZeroNet merged commit 778e010 into HelloZeroNet:master Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants