verify_nonce property

Pointer<NativeFunction<pj_bool_t Function(Pointer<pj_stun_msg> msg, Pointer<Void> user_data, Pointer<pj_str_t> realm, Pointer<pj_str_t> username, Pointer<pj_str_t> nonce)>> verify_nonce
getter/setter pair

This callback will be called to verify that the NONCE given in the message can be accepted. If this callback returns PJ_FALSE, 438 (Stale Nonce) response will be created.

This callback is optional.

@param msg The STUN message where the nonce was received. @param user_data The user data as specified in the credential. @param realm The realm as specified in the message. @param username The username as specified in the message. @param nonce The nonce to be verified.

@return The callback MUST return non-zero if the NONCE can be accepted.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        pj_bool_t Function(
            ffi.Pointer<pj_stun_msg> msg,
            ffi.Pointer<ffi.Void> user_data,
            ffi.Pointer<pj_str_t> realm,
            ffi.Pointer<pj_str_t> username,
            ffi.Pointer<pj_str_t> nonce)>> verify_nonce;