def METHOD_NAME(n_messages, messages, p_response, app_data):  # type: ignore
    """
    Simple conversation function that responds to any prompt where the echo is off with the supplied password
    """
    # Create an array of n_messages response objects
    addr = CALLOC(n_messages, sizeof(PamResponse))
    p_response[0] = cast(addr, POINTER(PamResponse))
    for i in range(n_messages):  # type: ignore
        if messages[i].contents.msg_style == PAM_PROMPT_ECHO_OFF:  # type: ignore
            pw_copy = STRDUP(password.encode())
            p_response.contents[i].resp = cast(pw_copy, c_char_p)  # type: ignore
            p_response.contents[i].resp_retcode = 0  # type: ignore
    return 0