Ignore:
Timestamp:
May 15, 2019 9:41:52 AM (5 years ago)
Author:
nanang
Message:

Re #2179: Wipe out memory used for storing SSL keys in PJSIP TLS transport and pjsua app. Thanks Peter Koletzki for the feedback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r5918 r5994  
    17941794        status = pjsua_set_null_snd_dev(); 
    17951795        if (status != PJ_SUCCESS) 
    1796             return status; 
     1796            goto on_error; 
    17971797    } 
    17981798#endif 
     
    18111811    call_opt.aud_cnt = app_config.aud_cnt; 
    18121812    call_opt.vid_cnt = app_config.vid.vid_cnt; 
     1813 
     1814    /* Wipe out TLS key settings in transport configs */ 
     1815    pjsip_tls_setting_wipe_keys(&app_config.udp_cfg.tls_setting); 
    18131816 
    18141817    pj_pool_release(tmp_pool); 
     
    19601963        cli_telnet_port = app_config.cli_cfg.telnet_cfg.port;    
    19611964    } 
     1965 
     1966    /* Wipe out TLS key settings in transport configs */ 
     1967    pjsip_tls_setting_wipe_keys(&app_config.udp_cfg.tls_setting); 
    19621968 
    19631969    /* Reset config */ 
Note: See TracChangeset for help on using the changeset viewer.