get_cred property

Pointer<NativeFunction<pj_status_t Function(Pointer<pj_stun_msg> msg, Pointer<Void> user_data, Pointer<pj_pool_t> pool, Pointer<pj_str_t> realm, Pointer<pj_str_t> username, Pointer<pj_str_t> nonce, Pointer<Int32> data_type, Pointer<pj_str_t> data)>> get_cred
getter/setter pair

Get the credential to be put in outgoing request.

@param msg The outgoing message where the credential is to be applied. @param user_data The user data as specified in the credential. @param pool Pool where the callback can allocate memory to fill in the credential. @param realm On return, the callback may specify the realm if long term credential is desired, otherwise this string must be set to empty. @param username On return, the callback must fill in with the username. @param nonce On return, the callback may optionally fill in this argument with NONCE value if desired, otherwise this argument must be set to empty. @param data_type On return, the callback must set this argument with the type of password in the data argument. @param data On return, the callback must set this with the password, encoded according to data_type argument.

@return The callback must return PJ_SUCCESS, otherwise the message transmission will be cancelled.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        pj_status_t Function(
            ffi.Pointer<pj_stun_msg> msg,
            ffi.Pointer<ffi.Void> user_data,
            ffi.Pointer<pj_pool_t> pool,
            ffi.Pointer<pj_str_t> realm,
            ffi.Pointer<pj_str_t> username,
            ffi.Pointer<pj_str_t> nonce,
            ffi.Pointer<ffi.Int32> data_type,
            ffi.Pointer<pj_str_t> data)>> get_cred;