Changeset 5386


Ignore:
Timestamp:
Jul 15, 2016 10:16:58 AM (3 years ago)
Author:
ming
Message:

Re #1928 (misc): Re #1878 (Compile time option for TCP/TLS transport to not create a listener)

When not creating a TLS listener, still call pj_ssl_sock_set_certificate(), since it will later still be used by clients.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c

    r5366 r5386  
    446446    } 
    447447 
    448 #if !(defined(PJSIP_TLS_TRANSPORT_DONT_CREATE_LISTENER) && \ 
    449       PJSIP_TLS_TRANSPORT_DONT_CREATE_LISTENER != 0) 
    450  
    451448    /* Check if certificate/CA list for SSL socket is set */ 
    452449    if (listener->tls_setting.cert_file.slen || 
     
    463460        if (status != PJ_SUCCESS) 
    464461            goto on_error; 
    465  
     462     } 
     463 
     464#if !(defined(PJSIP_TLS_TRANSPORT_DONT_CREATE_LISTENER) && \ 
     465      PJSIP_TLS_TRANSPORT_DONT_CREATE_LISTENER != 0) 
     466 
     467     if (listener->cert) { 
    466468        status = pj_ssl_sock_set_certificate(listener->ssock, pool,  
    467469                                             listener->cert); 
Note: See TracChangeset for help on using the changeset viewer.