From bb2fc905eb58b9ebdf66e89330599be996821db7 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Wed, 24 Feb 2010 05:43:34 +0000 Subject: Ticket #1032: - Initial version of server domain name verification: - Updated SSL certificate info, especially identities info - Updated verification mechanism as in the specifications in ticket desc. - Added server domain name info in pjsip_tx_data. - Added alternative API for acquiring transport and creating transport of transport factory to include pjsip_tx_data param. - Server identity match criteria: - full host name match - wild card not accepted - if identity is URI, it must be SIP/SIPS URI - Initial version of transport state notifications: - Added new API to set transport state callback in PJSIP and PJSUA. - Defined states: connected/disconnected, accepted/rejected, verification errors. - Minors: - Updated SSL socket test: dump verification result, test of requiring client cert, and few minors. - Updated test cert to include subjectAltName extensions. - Added SSL certificate dump function. - Updated max number of socket async operations in Symbian sample apps (RSocketServ::Connect()) to 32 (was default 8). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3106 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'pjsip/include/pjsua-lib/pjsua.h') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index ecafb25d..8d4d0a97 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -843,6 +843,25 @@ typedef struct pjsua_callback */ void (*on_mwi_info)(pjsua_acc_id acc_id, pjsua_mwi_info *mwi_info); + /** + * This callback is called when transport state is changed. See also + * #pjsip_tp_state_callback. + * + * @param tp The transport instance. + * @param state The transport state, this may contain single or + * combination of transport state types defined in + * #pjsip_transport_state_type. + * @param info The transport state info. + * + * @return When TLS verification fails and peer verification in + * #pjsip_tls_setting is not set, application may return + * PJ_TRUE to ignore the verification result and continue + * using the transport. On other cases, this return value + * is currently not used and will be ignored. + */ + pj_bool_t (*on_transport_state)(pjsip_transport *tp, pj_uint32_t state, + const pjsip_transport_state_info *info); + } pjsua_callback; -- cgit v1.2.3