diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-11-06 13:31:37 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-11-06 13:31:37 +0000 |
commit | 5ad076e71b93972ac204bfae7749695f04e59ab0 (patch) | |
tree | 8e5e3b34396d937cd85eb01da2a8f9bea5076844 /pjlib/src/pjlib-test | |
parent | c7909ede03c0e1c8ca16812879a001cde325e158 (diff) |
Ticket #957:
- Updated Symbian PJLIB test build setting to enable SSL sock test.
- Fixed ciphers enumeration in Symbian SSL sock.
- Fixed OpenSSL SSL sock to avoid initializing OpenSSL multiple times.
- Fixed SSL unit test to avoid divide-by-zero in setting random seed.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2990 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test')
-rw-r--r-- | pjlib/src/pjlib-test/ssl_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/ssl_sock.c b/pjlib/src/pjlib-test/ssl_sock.c index a1f9dca2..e3563b67 100644 --- a/pjlib/src/pjlib-test/ssl_sock.c +++ b/pjlib/src/pjlib-test/ssl_sock.c @@ -610,7 +610,7 @@ static int echo_test(pj_ssl_sock_proto srv_proto, pj_ssl_sock_proto cli_proto, pj_time_val now; pj_gettimeofday(&now); - pj_srand((pj_rand()%now.sec) * (pj_rand()%now.msec)); + pj_srand((unsigned)now.sec); state_cli.send_str_len = (pj_rand() % 5 + 1) * 1024 + pj_rand() % 1024; } state_cli.send_str = pj_pool_alloc(pool, state_cli.send_str_len); @@ -1006,7 +1006,7 @@ static int perf_test(unsigned clients, unsigned ms_handshake_timeout) pj_time_val now; pj_gettimeofday(&now); - pj_srand((pj_rand()%now.sec) * (pj_rand()%now.msec)); + pj_srand((unsigned)now.sec); } /* Allocate SSL socket pointers and test state */ |