Files
qemu-qemu/ui/vnc-stubs.c
Daniel P. Berrangé 912f969e35 ui: add proper error reporting for password changes
Neither the VNC or SPICE code for password changes provides error
reporting at source, leading the callers to report a largely useless
generic error message.

Fixing this removes one of the two remaining needs for the undesirable
error_printf_unless_qmp() method.

While fixing this the error message hint is improved to recommend the
'password-secret' option which allows securely passing a password at
startup.

Reported-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-03-05 17:40:24 +00:00

13 lines
273 B
C

#include "qemu/osdep.h"
#include "ui/console.h"
#include "qapi/error.h"
int vnc_display_password(const char *id, const char *password, Error **errp)
{
g_assert_not_reached();
}
int vnc_display_pw_expire(const char *id, time_t expires)
{
g_assert_not_reached();
};