mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
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>
13 lines
273 B
C
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();
|
|
};
|