mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
spice: move auth functions to QemuSpiceOps.
Move qemu_spice_set_passwd() and qemu_spice_set_pw_expire() functions to QemuSpiceOps. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20201019075224.14803-7-kraxel@redhat.com
This commit is contained in:
parent
05b53636d0
commit
08ad262643
5 changed files with 25 additions and 20 deletions
|
@ -31,9 +31,6 @@ void qemu_spice_display_init(void);
|
|||
int qemu_spice_display_add_client(int csock, int skipauth, int tls);
|
||||
bool qemu_spice_have_display_interface(QemuConsole *con);
|
||||
int qemu_spice_add_display_interface(QXLInstance *qxlin, QemuConsole *con);
|
||||
int qemu_spice_set_passwd(const char *passwd,
|
||||
bool fail_if_connected, bool disconnect_if_connected);
|
||||
int qemu_spice_set_pw_expire(time_t expires);
|
||||
int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
|
||||
const char *subject);
|
||||
|
||||
|
@ -48,17 +45,6 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
|
|||
#include "qemu/error-report.h"
|
||||
|
||||
#define spice_displays 0
|
||||
static inline int qemu_spice_set_passwd(const char *passwd,
|
||||
bool fail_if_connected,
|
||||
bool disconnect_if_connected)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
static inline int qemu_spice_set_pw_expire(time_t expires)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static inline int qemu_spice_display_add_client(int csock, int skipauth,
|
||||
int tls)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue