Changeset 5889
- Timestamp:
- Sep 21, 2018 8:29:12 AM (6 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h
r5888 r5889 75 75 #endif 76 76 77 77 78 /** 78 79 * This structure describe the parameter passed from #on_accept_fail_cb(). … … 94 95 pj_status_t status; 95 96 97 /** 98 * Last error code returned by native SSL backend. Note that this may be 99 * zero, if the failure is not SSL related (e.g: accept rejection). 100 */ 101 pj_status_t last_native_err; 102 96 103 } pjsip_tls_on_accept_fail_param; 104 97 105 98 106 /** -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r5888 r5889 1325 1325 if (listener->tls_setting.on_accept_fail_cb) { 1326 1326 pjsip_tls_on_accept_fail_param param; 1327 pj_ssl_sock_info ssi; 1328 1327 1329 pj_bzero(¶m, sizeof(param)); 1328 1330 param.status = accept_status; 1329 1331 param.local_addr = &listener->factory.local_addr; 1330 1332 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 1331 1336 (*listener->tls_setting.on_accept_fail_cb) (¶m); 1332 1337 }
Note: See TracChangeset
for help on using the changeset viewer.