Ignore:
Timestamp:
May 30, 2012 6:35:59 AM (13 years ago)
Author:
nanang
Message:

Fix #1522:

  1. Updated the 'shifter' (expected max openssl reason code) to 1200.
  2. Done, added pj_ssl_sock_info::last_native_err. Also fixed pjsip/sip_transport_tls.c to include TLS transport specific info in invoking transport state callback on disconnection event.
  3. Fixed.
File:
1 edited

Legend:

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

    r3999 r4146  
    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.