fix test_pe_crypto build
This commit is contained in:
parent
f3684db153
commit
1c3229caa9
4
Jamfile
4
Jamfile
|
@ -448,8 +448,8 @@ lib boost_date_time : : <name>boost_date_time ;
|
|||
|
||||
# openssl on linux/bsd/macos etc.
|
||||
lib gcrypt : : <name>gcrypt <link>shared <search>/opt/local/lib ;
|
||||
lib z : : <link>shared <name>z <search>/lib ;
|
||||
lib crypto : : <name>crypto <search>/lib <use>z ;
|
||||
lib z : : <link>shared <name>z <search>/usr/lib ;
|
||||
lib crypto : : <name>crypto <search>/usr/lib <use>z ;
|
||||
lib ssl : : <name>ssl <link>shared <use>crypto <search>/opt/local/lib ;
|
||||
lib dl : : <link>shared <name>dl ;
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "libtorrent/hasher.hpp"
|
||||
#include "libtorrent/pe_crypto.hpp"
|
||||
#include "libtorrent/session.hpp"
|
||||
#include "libtorrent/rsa.hpp"
|
||||
|
||||
#include "setup_transfer.hpp"
|
||||
#include "test.hpp"
|
||||
|
@ -221,7 +222,7 @@ int test_main()
|
|||
char public_key[268];
|
||||
int public_len = sizeof(public_key);
|
||||
|
||||
ret = generate_rsa_keys(public_key, &public_len, private_key, &private_len, 2048);
|
||||
int ret = generate_rsa_keys(public_key, &public_len, private_key, &private_len, 2048);
|
||||
fprintf(stderr, "keysizes: pub: %d priv: %d\n", public_len, private_len);
|
||||
|
||||
TEST_CHECK(ret);
|
||||
|
|
|
@ -47,7 +47,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "libtorrent/enum_net.hpp"
|
||||
#include "libtorrent/bloom_filter.hpp"
|
||||
#include "libtorrent/aux_/session_impl.hpp"
|
||||
#include "libtorrent/rsa.hpp"
|
||||
#include "libtorrent/ip_voter.hpp"
|
||||
#include <boost/bind.hpp>
|
||||
#include <iostream>
|
||||
|
|
Loading…
Reference in New Issue