verify_server property
Specifies TLS transport behavior on the server TLS certificate verification result:
- If \a verify_server is disabled (set to PJ_FALSE), TLS transport will just notify the application via #pjsip_tp_state_callback with state PJSIP_TP_STATE_CONNECTED regardless TLS verification result.
- If \a verify_server is enabled (set to PJ_TRUE), TLS transport will be shutdown and application will be notified with state PJSIP_TP_STATE_DISCONNECTED whenever there is any TLS verification error, otherwise PJSIP_TP_STATE_CONNECTED will be notified.
In any cases, application can inspect #pjsip_tls_state_info in the callback to see the verification detail.
Default value is PJ_FALSE.
Implementation
@pj_bool_t()
external int verify_server;