- Timestamp:
- Nov 6, 2009 1:31:37 PM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.symbian/pjlib_test.mmp
r2873 r2990 47 47 SOURCE sock.c 48 48 SOURCE sock_perf.c 49 SOURCE ssl_sock.c 49 50 SOURCE string.c 50 51 SOURCE test_wrap.cpp … … 69 70 SYSTEMINCLUDE \epoc32\include\libc 70 71 71 LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib 72 LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib securesocket.lib 72 73 #ifdef WINSCW 73 74 STATICLIBRARY eexe.lib ecrt0.lib … … 77 78 EPOCSTACKSIZE 32768 78 79 80 CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r2989 r2990 249 249 errstr.ptr = buf; 250 250 errstr.slen = pj_ansi_snprintf(buf, bufsize, 251 "Unknown OpenSSL error % d",251 "Unknown OpenSSL error %ul", 252 252 ssl_err); 253 253 … … 268 268 static pj_status_t init_openssl(void) 269 269 { 270 if ( ++openssl_init_count != 1)270 if (openssl_init_count) 271 271 return PJ_SUCCESS; 272 273 openssl_init_count = 1; 272 274 273 275 /* Register error subsystem */ … … 335 337 static void shutdown_openssl(void) 336 338 { 337 if (--openssl_init_count != 0) 338 return; 339 PJ_UNUSED_ARG(openssl_init_count); 339 340 } 340 341 -
pjproject/trunk/pjlib/src/pj/ssl_sock_symbian.cpp
r2970 r2990 448 448 ciphers_num_ = PJ_ARRAY_SIZE(ciphers_); 449 449 for (i = 0; i < ciphers_num_; ++i) 450 ciphers_[i] = (pj_ssl_cipher)ciphers_buf[i*2]; 450 ciphers_[i] = (pj_ssl_cipher)(ciphers_buf[i*2]*10 + 451 ciphers_buf[i*2+1]); 451 452 } 452 453 -
pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c
r2986 r2990 611 611 612 612 pj_gettimeofday(&now); 613 pj_srand(( pj_rand()%now.sec) * (pj_rand()%now.msec));613 pj_srand((unsigned)now.sec); 614 614 state_cli.send_str_len = (pj_rand() % 5 + 1) * 1024 + pj_rand() % 1024; 615 615 } … … 1007 1007 1008 1008 pj_gettimeofday(&now); 1009 pj_srand(( pj_rand()%now.sec) * (pj_rand()%now.msec));1009 pj_srand((unsigned)now.sec); 1010 1010 } 1011 1011
Note: See TracChangeset
for help on using the changeset viewer.