2015-07-01 20:10:31 +03:00
|
|
|
vnc-obj-y += vnc.o
|
2012-05-22 15:48:15 +04:00
|
|
|
vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
|
|
|
|
vnc-obj-y += vnc-enc-tight.o vnc-palette.o
|
|
|
|
vnc-obj-y += vnc-enc-zrle.o
|
ui: convert VNC server to use QCryptoTLSSession
Switch VNC server over to using the QCryptoTLSSession object
for the TLS session. This removes the direct use of gnutls
from the VNC server code. It also removes most knowledge
about TLS certificate handling from the VNC server code.
This has the nice effect that all the CONFIG_VNC_TLS
conditionals go away and the user gets an actual error
message when requesting TLS instead of it being silently
ignored.
With this change, the existing configuration options for
enabling TLS with -vnc are deprecated.
Old syntax for anon-DH credentials:
-vnc hostname:0,tls
New syntax:
-object tls-creds-anon,id=tls0,endpoint=server \
-vnc hostname:0,tls-creds=tls0
Old syntax for x509 credentials, no client certs:
-vnc hostname:0,tls,x509=/path/to/certs
New syntax:
-object tls-creds-x509,id=tls0,dir=/path/to/certs,endpoint=server,verify-peer=no \
-vnc hostname:0,tls-creds=tls0
Old syntax for x509 credentials, requiring client certs:
-vnc hostname:0,tls,x509verify=/path/to/certs
New syntax:
-object tls-creds-x509,id=tls0,dir=/path/to/certs,endpoint=server,verify-peer=yes \
-vnc hostname:0,tls-creds=tls0
This aligns VNC with the way TLS credentials are to be
configured in the future for chardev, nbd and migration
backends. It also has the benefit that the same TLS
credentials can be shared across multiple VNC server
instances, if desired.
If someone uses the deprecated syntax, it will internally
result in the creation of a 'tls-creds' object with an ID
based on the VNC server ID. This allows backwards compat
with the CLI syntax, while still deleting all the original
TLS code from the VNC server.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2015-08-06 16:39:32 +03:00
|
|
|
vnc-obj-y += vnc-auth-vencrypt.o
|
2012-05-22 15:48:15 +04:00
|
|
|
vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
|
2015-07-01 20:10:36 +03:00
|
|
|
vnc-obj-y += vnc-ws.o
|
2012-06-20 17:24:28 +04:00
|
|
|
vnc-obj-y += vnc-jobs.o
|
2012-05-22 15:48:15 +04:00
|
|
|
|
2014-03-11 15:15:39 +04:00
|
|
|
common-obj-y += keymaps.o console.o cursor.o qemu-pixman.o
|
|
|
|
common-obj-y += input.o input-keymap.o input-legacy.o
|
2012-05-22 15:48:15 +04:00
|
|
|
common-obj-$(CONFIG_SPICE) += spice-core.o spice-input.o spice-display.o
|
2014-10-28 11:47:55 +03:00
|
|
|
common-obj-$(CONFIG_SDL) += sdl.mo x_keymap.o
|
2012-05-22 15:48:15 +04:00
|
|
|
common-obj-$(CONFIG_COCOA) += cocoa.o
|
|
|
|
common-obj-$(CONFIG_CURSES) += curses.o
|
|
|
|
common-obj-$(CONFIG_VNC) += $(vnc-obj-y)
|
2013-02-25 19:20:43 +04:00
|
|
|
common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o
|
2012-09-17 10:35:53 +04:00
|
|
|
|
2014-11-11 12:13:08 +03:00
|
|
|
ifeq ($(CONFIG_SDLABI),1.2)
|
|
|
|
sdl.mo-objs := sdl.o sdl_zoom.o
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SDLABI),2.0)
|
2014-11-11 13:09:26 +03:00
|
|
|
sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o
|
2014-11-11 18:54:45 +03:00
|
|
|
ifeq ($(CONFIG_OPENGL),y)
|
|
|
|
sdl.mo-objs += sdl2-gl.o
|
|
|
|
endif
|
2014-11-11 12:13:08 +03:00
|
|
|
endif
|
2014-10-28 11:47:55 +03:00
|
|
|
sdl.mo-cflags := $(SDL_CFLAGS)
|
2012-09-17 10:35:53 +04:00
|
|
|
|
2015-04-24 08:48:45 +03:00
|
|
|
ifeq ($(CONFIG_OPENGL),y)
|
|
|
|
common-obj-y += shader.o
|
2015-01-09 13:40:23 +03:00
|
|
|
common-obj-y += console-gl.o
|
2015-01-06 17:40:00 +03:00
|
|
|
common-obj-y += egl-helpers.o
|
2015-04-29 11:08:04 +03:00
|
|
|
common-obj-y += egl-context.o
|
2015-05-26 13:26:21 +03:00
|
|
|
ifeq ($(CONFIG_GTK_GL),y)
|
|
|
|
common-obj-$(CONFIG_GTK) += gtk-gl-area.o
|
|
|
|
else
|
2015-01-20 14:43:28 +03:00
|
|
|
common-obj-$(CONFIG_GTK) += gtk-egl.o
|
2015-04-24 08:48:45 +03:00
|
|
|
endif
|
2015-05-26 13:26:21 +03:00
|
|
|
endif
|
2015-04-24 08:48:45 +03:00
|
|
|
|
2014-05-02 15:40:53 +04:00
|
|
|
gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
|
2015-01-20 14:43:28 +03:00
|
|
|
gtk-egl.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS)
|
2015-05-26 13:26:21 +03:00
|
|
|
gtk-gl-area.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS)
|
2015-04-24 08:48:45 +03:00
|
|
|
shader.o-cflags += $(OPENGL_CFLAGS)
|
2015-01-09 13:40:23 +03:00
|
|
|
console-gl.o-cflags += $(OPENGL_CFLAGS)
|
2015-01-06 17:40:00 +03:00
|
|
|
egl-helpers.o-cflags += $(OPENGL_CFLAGS)
|
2015-04-24 08:48:45 +03:00
|
|
|
|
2015-01-20 14:43:28 +03:00
|
|
|
gtk-egl.o-libs += $(OPENGL_LIBS)
|
2015-04-24 08:48:45 +03:00
|
|
|
shader.o-libs += $(OPENGL_LIBS)
|
2015-01-09 13:40:23 +03:00
|
|
|
console-gl.o-libs += $(OPENGL_LIBS)
|
2015-01-06 17:40:00 +03:00
|
|
|
egl-helpers.o-libs += $(OPENGL_LIBS)
|