mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user