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

Does ss-libev support mbedTLS 2.x? #422

Closed
roytam1 opened this issue Oct 2, 2015 · 4 comments
Closed

Does ss-libev support mbedTLS 2.x? #422

roytam1 opened this issue Oct 2, 2015 · 4 comments
Labels

Comments

@roytam1
Copy link

roytam1 commented Oct 2, 2015

IIRC there is header changes in mbedTLS 2.x

@madeye
Copy link

madeye commented Oct 2, 2015

Nope.

@madeye madeye closed this as completed Oct 2, 2015
@bigtan
Copy link

bigtan commented Oct 2, 2015

@madeye

Yep, already in use. Tested both in windows and debian/ubuntu.

if need, I can write a wiki, the compile of mbedtls in linux is ordinary, but in windows, you need to add some flag to make it work well.

windows

mbedtls

make lib WINDOWS_BUILD=1 no_test
make install DESTDIR="$HOME/prebuilt"

shadowsocks-libev

./configure --prefix="$HOME/ss" --with-crypto-library=mbedtls --with-mbedtls=$HOME/prebuilt
make && make install

linux

mbedtls

make lib
make install DESTDIR="$HOME/prebuilt"

shadowsocks-libev

./configure --prefix="$HOME/ss" --with-crypto-library=mbedtls --with-mbedtls=$HOME/prebuilt
make && make install

Mbed-TLS/mbedtls#231
Mbed-TLS/mbedtls#232

this two issue offer the way of compiling mbedtls well under windows system

@wongsyrone
Copy link

@bigtan
Can you enable these defines in config.h of mbedtls

#define MBEDTLS_THREADING_C
#define MBEDTLS_THREADING_PTHREAD

and test the performance? This combination will enable threading layer and use libpthread by default. Please use mbedtls 2.2

@bigtan
Copy link

bigtan commented Apr 18, 2016

I build both the with-thread and without-thread version and run them in one server. Maybe I can give you the config information and you can test its performance yourself. @wongsyrone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants