Ignore:
Timestamp:
Sep 21, 2018 8:29:12 AM (22 months ago)
Author:
nanang
Message:

Re #2150: Added native SSL error code in SIP TLS accept failure callback.

File:
1 edited

Legend:

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

    r5888 r5889  
    13251325        if (listener->tls_setting.on_accept_fail_cb) { 
    13261326            pjsip_tls_on_accept_fail_param param; 
     1327            pj_ssl_sock_info ssi; 
     1328 
    13271329            pj_bzero(&param, sizeof(param)); 
    13281330            param.status = accept_status; 
    13291331            param.local_addr = &listener->factory.local_addr; 
    13301332            param.remote_addr = src_addr; 
     1333            if (pj_ssl_sock_get_info(new_ssock, &ssi) == PJ_SUCCESS) 
     1334                param.last_native_err = ssi.last_native_err; 
     1335 
    13311336            (*listener->tls_setting.on_accept_fail_cb) (&param); 
    13321337        } 
Note: See TracChangeset for help on using the changeset viewer.