aboutsummaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we have a list of the multimedia keysyms defined by Xfree86.Pierre Ossman2011-05-202-2/+234
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4436 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add a default constructor so that you can create empty Security objects.Pierre Ossman2011-05-162-0/+5
| | | | | | | Useful when you just want to use the string encoder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4418 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove old declaration that never actually maps to an object.Pierre Ossman2011-05-161-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4415 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Security] vncviewer can send password without proper validation of X.509 certsAdam Tkac2011-05-101-2/+9
| | | | | | | | | (CVE-2011-1775). Reference: http://www.mail-archive.com/tigervnc-devel@lists.sourceforge.net/msg01342.html git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4401 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added additional check to only link against ws2_32 libraryHenrik Andersson2011-03-091-1/+4
| | | | | | | | on Windows build. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4344 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Forgot to add the new PixelTransformer class to the autotools system.Pierre Ossman2011-03-081-7/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4339 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Split out the pixel format conversion magic to its own class and makePierre Ossman2011-03-086-233/+427
| | | | | | | | TransImageGetter be just an ImageGetter interface to that functionality. This allows more flexible use of the pixel conversion routines. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4338 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The Windows specific include path should only be used on Windows.Pierre Ossman2011-03-081-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4335 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure Windows specific code is only included in Windows builds.Pierre Ossman2011-03-081-1/+4
| | | | | | | Patch by Henrik Andersson. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4334 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We don't need to special case Windows anymore now since we have properPierre Ossman2011-03-081-5/+1
| | | | | | | checks for old GnuTLS in CMake. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4333 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix up typo that's been copied around in several places.Pierre Ossman2011-03-081-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4332 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Windows actually has socklen_t, it's just that it is in a special header.Pierre Ossman2011-03-082-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4327 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Look for libjpeg in a more proper manner and don't just assume it's in aPierre Ossman2011-03-031-2/+2
| | | | | | | standard path. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4314 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Use the system copy of zlib by default, like we do with autotools.Pierre Ossman2011-03-032-3/+9
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4313 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We're trying to use CMake for every arch, so make sure the Windows specificPierre Ossman2011-03-031-1/+5
| | | | | | | | flag is conditional. Also remove the -DWINDOWS as it is unnecessary (zlib checks WIN32 as well in all relevant cases). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4312 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove the included libjpeg-turbo from the tree and rely completely on onePierre Ossman2011-03-02178-61023/+1
| | | | | | | being provided by the system. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4310 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Provide a simple helper class for basic colour map usage.Pierre Ossman2011-03-021-0/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4309 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Catch when no host was specified a bit more gracefully.Pierre Ossman2011-03-021-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4308 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make it easier to read string parameters by providing an implicit conversionPierre Ossman2011-03-022-0/+5
| | | | | | | to const char*. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4307 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Use VncAuth as the default security type, since TLS causes a significant ↵DRC2011-02-211-1/+1
| | | | | | performance hit on some systems git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4304 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Using a fixed port range with -via can cause a race condition between ↵DRC2011-02-211-10/+11
| | | | | | multiple vncviewer instances, whereby one instance calls bind() and finds the port to be free, then another instance calls bind() and finds the same port to be free, because the first instance hasn't started the SSH tunnel on it yet. This patch works around the issue by using ephemeral ports. All known modern O/S's increment the ephemeral port number by 1 after bind(), so the port is effectively "reserved" after bind(), and this prevents another vncviewer instance from trying to reserve the same port. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4303 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Improve r4300 - also honor server's sectype order for VeNCrypt ↵Adam Tkac2011-02-211-5/+5
| | | | | | subtypes. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4302 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make the VeNCrypt security type implicitDRC2011-02-213-2/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4301 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Honor server security type order instead of client's when ↵Adam Tkac2011-02-211-14/+13
| | | | | | negotiating security type. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4300 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Remove "unused-but-set" variable from tightDecode.h.Adam Tkac2011-02-211-2/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4298 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Register GNUTLS debug routines only when we actually need them.Adam Tkac2011-02-183-17/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4295 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Merge from libjpeg-turbo 1.0.2, including fixes for errors in generation of ↵DRC2011-02-188-61/+100
| | | | | | grayscale and high-quality JPEGs git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4294 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix wrong if() in the ScaledPixelBuffer::setSourceBuffer().Adam Tkac2011-02-141-1/+1
| | | | | | | Resolves #3178498 bug report. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4289 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix MinGW build breakageDRC2011-02-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4282 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix Windows build, recently added GNUTLS compat code broke it.Adam Tkac2011-02-092-5/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4279 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Improve compatibility with ancient GNUTLS implementations even more.Adam Tkac2011-02-093-0/+23
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4278 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] os: add gnutls_x509_crt_print() implementation, older systemsAdam Tkac2011-02-095-13/+258
| | | | | | | don't have it and improve backward compatibility of TLS code. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4277 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] client: improve server certificate verification code.Adam Tkac2011-02-091-119/+162
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4276 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Call gnutls_bye only when handshake is completed.Adam Tkac2011-02-092-6/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4275 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Oops. Checked in some debugging code.DRC2011-02-091-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4272 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Allow GnuTLS to use in-tree version of zlib when static linkingDRC2011-02-091-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4267 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Oops. Need to wait until after gnutls.h is included before checking the ↵DRC2011-02-091-11/+10
| | | | | | value of GNUTLS_VERSION_NUMBER git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4266 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Attempt to restore compatibility with older GnuTLS versionsDRC2011-02-081-2/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4264 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove old Visual C++ project files (use CMake to build with Visual C++)DRC2011-02-086-1744/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4260 3789f03b-4d11-0410-bbf8-ca57d06f2519
* libjpeg-turbo produces about the same image quality with the fast integer ↵DRC2011-02-081-0/+2
| | | | | | DCT if the JPEG quality is <= 95, and it's a lot faster. Slow integer DCT is retained for quality >= 96, because fast integer degrades at those quality levels. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4259 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Use bitwise NOT instead of logical NOT when working withAdam Tkac2011-02-071-2/+2
| | | | | | | | | VNCSConnectionST::accessRights. Fixes bug ID: 3158501. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4257 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Print empty string by default when paths for X.509 certs don't exist.Adam Tkac2011-02-071-2/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4256 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] os: introduce new function called "fileexists"Adam Tkac2011-02-072-0/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4255 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Append ".pem" suffix to saved certificates.Adam Tkac2011-02-071-6/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4254 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Rename function "gethomedir" to "getvnchomedir" and rewrite it inAdam Tkac2011-02-073-26/+21
| | | | | | | | | platform-intependent manner. Thanks to Guillaume Destuynder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4252 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Clarify that the SIMD C wrappers and headers fall under the same license as ↵DRC2011-02-026-0/+6
| | | | | | the rest of the SIMD code git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4250 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Add Security::ToString methodAdam Tkac2011-02-012-0/+27
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4245 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Allow to set security types directly in the Security classAdam Tkac2011-02-011-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4244 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Add possibility to build Windows programs with GNUTLS via cmake.Adam Tkac2011-01-192-3/+24
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4241 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] CSecurityTLS.cxx: include os/print.h to get correct snprintf ↵Adam Tkac2011-01-191-0/+1
| | | | | | definition. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4240 3789f03b-4d11-0410-bbf8-ca57d06f2519