on_verify_cb property

Pointer<NativeFunction<pj_bool_t Function(Pointer<pjsip_tls_on_verify_param> param)>> on_verify_cb
getter/setter pair

Callback to be called to verify a new connection. Currently it's only implemented for OpenSSL backend.

If this is set, the callback will always be invoked, even when peer verification is disabled (pjsip_tls_setting.verify_server/verify_client set to PJ_FALSE).

@param param The parameter to the callback.

@return Return PJ_TRUE if succesfully verified. If verification failed, connection will be dropped immediately.

Implementation

external ffi.Pointer<
        ffi.NativeFunction<
            pj_bool_t Function(ffi.Pointer<pjsip_tls_on_verify_param> param)>>
    on_verify_cb;