verify_client property

  1. @Int()
int verify_client
getter/setter pair

Specifies TLS transport behavior on the client TLS certificate verification result:

  • If \a verify_client 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_client 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_client;