Commit Graph

1678 Commits (25d23bd00b3a9cd7e95ce2635c5999b95ba9fdfb)
 

Author SHA1 Message Date
Christian Beier a2ebdf46cc
CMake: declare that websockets depend on crypto 7 years ago
Christian Beier 49f1d8de47
build: remove LIBVNCSERVER_WITH_CLIENT_TLS #define
It is not used anywhere anymore.
7 years ago
Christian Beier 85fb69515c
crypto: move to common
As of now, only LibVNCServer makes uses of these digest functions _and_
they depend on sys/uio.h, but in the future LibVNCClient will need those
as well.
7 years ago
Christian Beier 161e7cab02
Merge pull request #235 from eddiejames/master
Tight: export SendCompressedData and SendTightHeader functions
7 years ago
Slávek Banko a3628aa81c Fix FTBFS due to new DSO linkage style
This resolves bug 2927

Signed-off-by: Ray Vine <ray-v@inbox.lv>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Eddie James dd873fce45 Tight: export SendCompressedData and SendTightHeader functions
These functions can be used to send already compressed jpegs to a
client, circumventing the usual rect/region update methods which
operate on a raw rgb framebuffer. Rename the functions with the usual
rfb prefix and add the prototypes in rfb.h.

Signed-off-by: Eddie James <eajames@us.ibm.com>
7 years ago
Christian Beier a67e22dd1f
AppVeyorCI: remove unused statements 7 years ago
Christian Beier 84dee73eee
AppVeyorCI: remove Visual Studio 2013 as it somehow got broken at AppVeyor's side 7 years ago
Christian Beier 127b44ca0e
README: remove reference to functions not existing anymore
Closes #202.
7 years ago
Christian Beier b997331e52
Merge pull request #215 from BastiaanOlij/fix_nozlib_compile_error
libvncclient: zrle.c: Move undef of REALBPP down

rfbproto.c which includes this file expects an undefined REALBPP after the inclusion. Do this whether or not there is zlib available.
7 years ago
Christian Beier 5c0ff7e072
CMake: require FFMPEG version >= 3.1.0
re #231
7 years ago
Christian Beier 7e7103071b
AppVeyorCI: build with Visual Studio 2017 as well 7 years ago
Christian Beier f23248a415
rfbserver: fix a typo 7 years ago
Christian Beier 449cbe9028
rfbserver: get rid of inttypes.h again 7 years ago
Christian Beier b0c77391e6
Merge branch 'clientcuttext' of https://github.com/ppisar/libvncserver into ppisar-clientcuttext 7 years ago
Christian Beier 078590786c
libvncclient/sasl: prefix the header guard (again) to fix a warning 7 years ago
Christian Beier 71c3215d8f
SDLvncviewer: enable the X11 clipboard if X11 was found 7 years ago
Christian Beier c49204c815
androidvncserver: fix print_usage and a compiler warning 7 years ago
Christian Beier 8d4d021966
androidvncserver: add some boilerplate comment that should have been in the 1st code drop 7 years ago
Christian Beier c7c18332c8
androidvncserver: fix a quite serious typo
Closes #225.
7 years ago
Petr Písař 28afb6c537 Limit client cut text length to 1 MB
This patch constrains a client cut text length to 1 MB. Otherwise
a client could make server allocate 2 GB of memory and that seems to
be to much to classify it as a denial of service.

The limit also prevents from an integer overflow followed by copying
an uninitilized memory when processing msg.cct.length value larger
than SIZE_MAX or INT_MAX - sz_rfbClientCutTextMsg.

This patch also corrects accepting length value of zero (malloc(0) is
interpreted on differnet systems differently).

CVE-2018-7225
<https://github.com/LibVNC/libvncserver/issues/218>
7 years ago
Christian Beier 020c30f63d
AppVeyorCI: set path to devenv tool based on environment 7 years ago
Christian Beier f84d90c9e8
androidvncserver: remove keycodes not in NDK anymore
This makes the android VNC server example build again.
7 years ago
Bastiaan Olij c5b8763b61 Moved undef of REALBPP down 7 years ago
Christian Beier d34c7b07ac
Merge pull request #203 from dcommander/turbovnc-client
Include Tight decoding optimizations from TurboVNC
7 years ago
DRC d7b14624cb Include Tight decoding optimizations from TurboVNC
- As with the encoder, the decoder now uses the TurboJPEG wrapper, which
  allows it to decode JPEG images directly into the framebuffer.  This
  eliminates a buffer copy (CopyRectangle()) as well as the expensive
  RGB pixel conversion in DecompressJpegRectBPP().  The TurboJPEG
  wrapper performs RGB pixel conversion more optimally, and only when
  necessary (it uses the libjpeg-turbo colorspace extensions when
  available, in order to avoid RGB conversion.)
- The other Tight subencoding types are also now decoded directly into
  the framebuffer, which eliminates buffer copies.
- The Tight decoder now supports the rfbTightNoZlib extension, which
  allows the server to bypass zlib compression when Compression Level 0
  is selected.  The encoder already supports this extension.  Passing
  the data stream through zlib when Compression Level 0 is selected
  needlessly wastes CPU time, since all zlib is doing is copying the
  data internally into its own structures.
7 years ago
Christian Beier ccd7208cf3
Merge pull request #197 from wwqwwqwd/master
Add trle decoder
7 years ago
Slávek Banko 6fbd5fcdf1 Fix build with cmake < 3.0 7 years ago
Slávek Banko 68cb29a12f Merge tag 'LibVNCServer-0.9.11' of https://github.com/LibVNC/libvncserver
Conflicts:
	CMakeLists.txt
	libvncserver/main.c
7 years ago
Wiki Wang beb82f8dde Add trle decoder 8 years ago
Christian Beier 6814e946e0
libvncclient: rename rfbsasl.[c|h] to sasl.[c|h] to be in line with naming of other files 8 years ago
Christian Beier df11e806a3
Move HAVE_SASL #ifdefs into header file to have less LOC 8 years ago
Christian Beier 666f37efc0
Fix building whithout SASL 8 years ago
Christian Beier 98e1be528f
Merge branch 'sasl2' of git://github.com/simonwaterman/libvncserver into simonwaterman-sasl2 8 years ago
Christian Beier 1155edec9e Merge pull request #188 from Cordius/master
fix: the function should not return a value
8 years ago
Wu Zongyong 2c2f103304 fix: the function should not return a value 8 years ago
simon cb4e15c1ae Added SASL authentication support
Added SASL support to OpenSSL
8 years ago
Christian Beier 7362db632a Merge pull request #161 from jlesage/master-base64-compat
websockets: Fixed compilation of websockets on systems where there is no implementation of base64 functions.
8 years ago
Jocelyn Le Sage e8a1ca2035 Fixed compilation of websockets on system where there is no implementation of base64 functions. 8 years ago
Christian Beier ada4b4fc5a Merge pull request #158 from kempniu/gtk-vnc-0.7.0-compat
websockets: Ensure compatibility with gtk-vnc 0.7.0+
8 years ago
Christian Beier 051fe2a009
websockets: hide decode debug output per default 8 years ago
Christian Beier 0e76b289c8
websockets: only build tests for a websockets-enabled build 8 years ago
Christian Beier f48921becf
websockets: restore webSocketCheckDisconnect() to keep API compatibility 8 years ago
Andreas Weigel ef8d2852f5
remove potential 64 bit len overflow calculation 8 years ago
Andreas Weigel 5d9d6a8712
add decode support for continuation frames
use FIN bit and implement opcode 0x00

make consistent use of uint64_t for big frame sizes
8 years ago
Andreas Weigel 8fefdcde27
fix problems in test and requests for cmake build
add missing stdarg header

fix hardcoded errno integer values in tests

add dependency to wstestdata and rename to prevent building it as c
source
8 years ago
Andreas Weigel a90a43cda5
remove Hixie-specific MD5 and check functions 8 years ago
Andreas Weigel 826e0f9e39
add generation wstest to cmake
add wstestdata.c, because the python data generation script has too many
dependencies

remove some redundance from jpeg test creation

add support for decoding close messages
8 years ago
Andreas Weigel f19d6ee225
add ws_decode tests
modify automake to include ws_decode test

add python frame generator for decode tests

modify configure to only include ws_decode test if preconditions are
fulfilled
8 years ago
Andreas Weigel a2322e7006
remove obsolete hixie protocol support 8 years ago