diff options
author | Joshua Colp <jcolp@digium.com> | 2016-03-14 10:59:10 -0300 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-03-14 09:37:42 -0600 |
commit | 4df7b3ae80d7d022c0fd941de614b829948ce3ef (patch) | |
tree | 3d0906952648fcf8e4a9a84d60759ece3c6fcf8e /res/res_pjsip | |
parent | b12980011abed533eea13d1d3b80faed331a1f1e (diff) |
build: Add configure check for proto field of PJSIP TLS transport setting.
Older versions of PJSIP do not have the proto field on the TLS transport
setting structure. This change adds a configure check so even if it is
not present we will still be able to build.
Change-Id: Ibf3f47befb91ed1b8194bf63888baa6fee05aba9
Diffstat (limited to 'res/res_pjsip')
-rw-r--r-- | res/res_pjsip/config_transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c index db579bf2f..d2c087487 100644 --- a/res/res_pjsip/config_transport.c +++ b/res/res_pjsip/config_transport.c @@ -422,7 +422,9 @@ static int has_state_changed(struct ast_sip_transport_state *a, struct ast_sip_t if (a->tls.method != b->tls.method || a->tls.ciphers_num != b->tls.ciphers_num +#ifdef HAVE_PJSIP_TLS_TRANSPORT_PROTO || a->tls.proto != b->tls.proto +#endif || a->tls.verify_client != b->tls.verify_client || a->tls.verify_server != b->tls.verify_server || a->tls.require_client_cert != b->tls.require_client_cert) { |