Skip to content

Commit

Permalink
VeNCrypt basic TLS support, by Daniel P. Berrange.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3136 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
ths committed Aug 25, 2007
1 parent 7084851 commit 8d5d2d4
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ SOUND_HW += fmopl.o adlib.o
endif
AUDIODRV+= wavcapture.o

ifdef CONFIG_VNC_TLS
CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
LIBS += $(CONFIG_VNC_TLS_LIBS)
endif

VL_OBJS += i2c.o smbus.o

# SCSI layer
Expand Down
25 changes: 25 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ alsa="no"
fmod="no"
fmod_lib=""
fmod_inc=""
vnc_tls="yes"
bsd="no"
linux="no"
kqemu="no"
Expand Down Expand Up @@ -252,6 +253,8 @@ for opt do
;;
--fmod-inc=*) fmod_inc="$optarg"
;;
--disable-vnc-tls) vnc_tls="no"
;;
--enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" ; linux_user="no"
;;
--disable-slirp) slirp="no"
Expand Down Expand Up @@ -362,6 +365,7 @@ echo " --enable-coreaudio enable Coreaudio audio driver"
echo " --enable-alsa enable ALSA audio driver"
echo " --enable-fmod enable FMOD audio driver"
echo " --enable-dsound enable DirectSound audio driver"
echo " --disable-vnc-tls disable TLS encryption for VNC server"
echo " --enable-system enable all system emulation targets"
echo " --disable-system disable all system emulation targets"
echo " --enable-linux-user enable all linux usermode emulation targets"
Expand Down Expand Up @@ -588,6 +592,16 @@ else
fi
fi # -z $sdl

##########################################
# VNC TLS detection
if test "$vnc_tls" = "yes" ; then
`pkg-config gnutls` || vnc_tls="no"
fi
if test "$vnc_tls" = "yes" ; then
vnc_tls_cflags=`pkg-config --cflags gnutls`
vnc_tls_libs=`pkg-config --libs gnutls`
fi

##########################################
# alsa sound support libraries

Expand Down Expand Up @@ -675,6 +689,11 @@ else
fi
echo "FMOD support $fmod $fmod_support"
echo "OSS support $oss"
echo "VNC TLS support $vnc_tls"
if test "$vnc_tls" = "yes" ; then
echo " TLS CFLAGS $vnc_tls_cflags"
echo " TLS LIBS $vnc_tls_libs"
fi
if test -n "$sparc_cpu"; then
echo "Target Sparc Arch $sparc_cpu"
fi
Expand Down Expand Up @@ -847,6 +866,12 @@ if test "$fmod" = "yes" ; then
echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_mak
echo "#define CONFIG_FMOD 1" >> $config_h
fi
if test "$vnc_tls" = "yes" ; then
echo "CONFIG_VNC_TLS=yes" >> $config_mak
echo "CONFIG_VNC_TLS_CFLAGS=$vnc_tls_cflags" >> $config_mak
echo "CONFIG_VNC_TLS_LIBS=$vnc_tls_libs" >> $config_mak
echo "#define CONFIG_VNC_TLS 1" >> $config_h
fi
qemu_version=`head $source_path/VERSION`
echo "VERSION=$qemu_version" >>$config_mak
echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h
Expand Down
Loading

0 comments on commit 8d5d2d4

Please sign in to comment.