Ignore:
Timestamp:
Nov 6, 2009 1:31:37 PM (11 years ago)
Author:
nanang
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r2989 r2990  
    249249    errstr.ptr = buf; 
    250250    errstr.slen = pj_ansi_snprintf(buf, bufsize,  
    251                                    "Unknown OpenSSL error %d", 
     251                                   "Unknown OpenSSL error %ul", 
    252252                                   ssl_err); 
    253253 
     
    268268static pj_status_t init_openssl(void) 
    269269{ 
    270     if (++openssl_init_count != 1) 
     270    if (openssl_init_count) 
    271271        return PJ_SUCCESS; 
     272 
     273    openssl_init_count = 1; 
    272274 
    273275    /* Register error subsystem */ 
     
    335337static void shutdown_openssl(void) 
    336338{ 
    337     if (--openssl_init_count != 0) 
    338         return; 
     339    PJ_UNUSED_ARG(openssl_init_count); 
    339340} 
    340341 
Note: See TracChangeset for help on using the changeset viewer.