Ignore:
Timestamp:
Feb 27, 2013 9:41:37 AM (7 years ago)
Author:
nanang
Message:

Re #1522: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/src/pjsip/sip_transport_tls.c

    r3942 r4376  
    195195    if (state_cb) { 
    196196        pjsip_transport_state_info state_info; 
    197  
     197        pjsip_tls_state_info tls_info; 
     198        pj_ssl_sock_info ssl_info; 
     199         
     200        /* Init transport state info */ 
    198201        pj_bzero(&state_info, sizeof(state_info)); 
    199202        state_info.status = tls->close_reason; 
     203 
     204        if (tls->ssock &&  
     205            pj_ssl_sock_get_info(tls->ssock, &ssl_info) == PJ_SUCCESS) 
     206        { 
     207            pj_bzero(&tls_info, sizeof(tls_info)); 
     208            tls_info.ssl_sock_info = &ssl_info; 
     209            state_info.ext_info = &tls_info; 
     210        } 
     211 
    200212        (*state_cb)(&tls->base, PJSIP_TP_STATE_DISCONNECTED, &state_info); 
    201213    } 
Note: See TracChangeset for help on using the changeset viewer.