Ignore:
Timestamp:
Jul 15, 2018 2:09:23 PM (2 years ago)
Author:
riza
Message:

Close #484: Allow to use binary certificate in TLS transport.

File:
1 edited

Legend:

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

    r5649 r5821  
    587587    if (listener->tls_setting.cert_file.slen || 
    588588        listener->tls_setting.ca_list_file.slen || 
    589         listener->tls_setting.ca_list_path.slen)  
     589        listener->tls_setting.ca_list_path.slen ||  
     590        listener->tls_setting.privkey_file.slen)  
    590591    { 
    591592        status = pj_ssl_cert_load_from_files2(pool, 
     
    598599        if (status != PJ_SUCCESS) 
    599600            goto on_error; 
     601    } else if (listener->tls_setting.ca_buf.slen || 
     602               listener->tls_setting.cert_buf.slen|| 
     603               listener->tls_setting.privkey_buf.slen) 
     604    { 
     605        status = pj_ssl_cert_load_from_buffer(pool, 
     606                        &listener->tls_setting.ca_buf, 
     607                        &listener->tls_setting.cert_buf, 
     608                        &listener->tls_setting.privkey_buf, 
     609                        &listener->tls_setting.password, 
     610                        &listener->cert); 
     611        if (status != PJ_SUCCESS) 
     612            goto on_error;     
    600613    } 
    601614 
Note: See TracChangeset for help on using the changeset viewer.