Commit 9b5af9c3 authored by Simon Morlat's avatar Simon Morlat

Add a new supported tag to tport_get_params() that allows an application to...

Add a new supported tag to tport_get_params() that allows an application to know which TLS verify policy was requested for the tport.
parent 991c8157
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.10bc])
AC_INIT([sofia-sip], [1.13.11bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -1310,6 +1310,7 @@ int tport_get_params(tport_t const *self,
TAG_IF((void *)self == (void *)mr,
TPTAG_DUMP(mr->mr_dump)),
TPTAG_DOS(tpp->tpp_dos_time_period),
TPTAG_TLS_VERIFY_POLICY(tpp->tls_verify_policy),
TAG_END());
ta_end(ta);
......
......@@ -113,13 +113,15 @@ typedef struct {
unsigned tpp_drop; /**< Packet drop probablity */
int tpp_tos; /**< IP TOS */
unsigned tpp_dos_time_period; /**<dos protection*/
unsigned tls_verify_policy; /**<copied from TLS transport*/
unsigned tpp_conn_orient:1; /**< Connection-orienteded */
unsigned tpp_sdwn_error:1; /**< If true, shutdown is error. */
unsigned tpp_stun_server:1; /**< If true, use stun server */
unsigned tpp_pong2ping:1; /**< If true, respond with pong to ping */
unsigned tpp_dos_time_period;
unsigned :0;
......
......@@ -276,6 +276,7 @@ static int tport_tls_init_master(tport_primary_t *pri,
if (tls_subjects)
pri->pri_primary->tp_subjects = su_strlst_dup(pri->pri_home, tls_subjects);
pri->pri_has_tls = 1;
pri->pri_params->tls_verify_policy = ti.policy;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment