diff --git a/Jamfile b/Jamfile index 5e1a90f..569caec 100644 --- a/Jamfile +++ b/Jamfile @@ -59,7 +59,7 @@ alias usrsctp : # no default build : # usage requirements ./deps/usrsctp/usrsctplib - libusrsctp.lib + usrsctp.lib ; alias juice @@ -77,11 +77,11 @@ alias juice : # no default build : # usage requirements ./deps/libjuice/include - libjuice-static.lib + juice-static.lib ; make libusrsctp.a : : @make_libusrsctp ; -make libusrsctp.lib : : @make_libusrsctp_msvc ; +make usrsctp.lib : : @make_libusrsctp_msvc ; actions make_libusrsctp { @@ -90,12 +90,17 @@ actions make_libusrsctp } actions make_libusrsctp_msvc { - (cd $(CWD)/deps/usrsctp && cmake -B build -G "Visual Studio 16 2019" && cd build && msbuild usrsctplib.sln) - cp $(CWD)/deps/usrsctp/build/usrsctplib/libusrsctp.lib $(<) + SET OLDD=%CD% + cd $(CWD)/deps/usrsctp + cmake -B build -G "Visual Studio 16 2019" + cd build + msbuild usrsctplib.sln /property:Configuration=Release + cd %OLDD% + cp $(CWD)/deps/usrsctp/build/usrsctplib/Release/usrsctp.lib $(<) } make libjuice-static.a : : @make_libjuice ; -make libjuice-static.lib : : @make_libjuice_msvc ; +make juice-static.lib : : @make_libjuice_msvc ; rule make_libjuice ( targets * : sources * : properties * ) { @@ -126,8 +131,13 @@ rule make_libjuice_msvc ( targets * : sources * : properties * ) } actions make_libjuice_msvc { - (cd $(CWD)/deps/libjuice && cmake -B build -G "Visual Studio 16 2019" $(CMAKEOPTS) && cd build && msbuild libjuice.sln) - cp $(CWD)/deps/libjuice/build/libjuice-static.lib $(<) + SET OLDD=%CD% + cd $(CWD)/deps/libjuice + cmake -B build -G "Visual Studio 16 2019" $(CMAKEOPTS) + cd build + msbuild libjuice.sln /property:Configuration=Release + cd %OLDD% + cp $(CWD)/deps/libjuice/build/Release/juice-static.lib $(<) } # the search path to pick up the openssl libraries from. This is the @@ -182,7 +192,7 @@ rule openssl-include-path ( properties * ) return $(result) ; } -# libraries for openssl on windows +# libraries for OpenSSL on Windows lib advapi32 : : advapi32 ; lib user32 : : user32 ; lib shell32 : : shell32 ; @@ -191,19 +201,13 @@ lib bcrypt : : bcrypt ; lib z : : shared z ; alias ssl-deps : advapi32 user32 shell32 gdi32 ; -# pre OpenSSL 1.1 windows -lib crypto : ssl-deps : windows pre1.1 libeay32 - @openssl-lib-path : : @openssl-include-path ; -lib ssl : ssl-deps : windows pre1.1 ssleay32 - crypto @openssl-lib-path : : @openssl-include-path ; - -# OpenSSL 1.1+ windows +# OpenSSL on Windows lib crypto : ssl-deps : msvc 1.1 libcrypto @openssl-lib-path : : @openssl-include-path ; lib ssl : ssl-deps : msvc 1.1 libssl crypto @openssl-lib-path : : @openssl-include-path ; -# generic OpenSSL +# OpenSSL on other platforms lib crypto : : crypto z @openssl-lib-path : : @openssl-include-path ; lib ssl : : ssl crypto @openssl-lib-path : : diff --git a/src/dtlstransport.cpp b/src/dtlstransport.cpp index 22fcee8..049cc4f 100644 --- a/src/dtlstransport.cpp +++ b/src/dtlstransport.cpp @@ -308,7 +308,8 @@ DtlsTransport::DtlsTransport(shared_ptr lower, shared_ptr lower, shared_ptr lower, shared_ptr(X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx())); DtlsTransport *t = @@ -543,7 +547,7 @@ int DtlsTransport::BioMethodWrite(BIO *bio, const char *in, int inl) { return inl; // can't fail } -long DtlsTransport::BioMethodCtrl(BIO *bio, int cmd, long num, void *ptr) { +long DtlsTransport::BioMethodCtrl(BIO * /*bio*/, int cmd, long /*num*/, void * /*ptr*/) { switch (cmd) { case BIO_CTRL_FLUSH: return 1;