Ignore:
Timestamp:
Oct 27, 2009 2:21:28 AM (12 years ago)
Author:
nanang
Message:

Ticket #957:

  • Fixed SSL socket unit test issues (mostly on Linux platform): let OS manage the binding port (specify port to 0), use pj_sockaddr_get_len() instead of sizeof() for sockaddr size, DOS eol format for certificate and private key files.
  • Temporary fix for SSL_CTX_use_certificate_chain_file() false error alarm (after previous OpenSSL handshake error), by clearing OpenSSL thread error queue in reset_ssl_sock_state()
File:
1 edited

Legend:

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

    r2970 r2971  
    480480        ssock->sock = PJ_INVALID_SOCKET; 
    481481    } 
     482 
     483    /* Upon error, OpenSSL may leave any error description in the thread  
     484     * error queue, which sometime may cause next call to SSL API returning 
     485     * false error alarm, e.g: in Linux, SSL_CTX_use_certificate_chain_file() 
     486     * returning false error after a handshake error (in different SSL_CTX!). 
     487     * For now, just clear thread error queue here. 
     488     */ 
     489    ERR_clear_error(); 
    482490} 
    483491 
Note: See TracChangeset for help on using the changeset viewer.