aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'covscan' of https://github.com/grulja/tigervncPierre Ossman2018-11-2113-27/+47
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix memory leaksJan Grulich2018-11-209-20/+37
| | | |
| * | | Check correct return codeJan Grulich2018-11-202-4/+7
| | | |
| * | | Do not duplicate default string twiceJan Grulich2018-09-261-2/+2
| | | |
| * | | Use empty address buffer when sockaddr sa_family is not what we wantJan Grulich2018-09-261-1/+1
| | | |
* | | | Save a few X11 server roundtrips by ignoring empty damage regions.Christian Authmann2018-11-111-0/+3
| | | | | | | | | | | | | | | | Logging revealed that a few empty damage regions are emitted on startup. Those don't need to be rendered to the Surface pixmap.
* | | | Prevent rendering uninitialized Pixmap contents on X11Christian Authmann2018-11-111-0/+3
| | | | | | | | | | | | | | | | | | | | The Pixmap is filled in as updates from the server arrive. Before the first full update, it would contain undefined contents, which would be rendered onto the ViewPort. Clearing the Pixmap is only done on startup and when changing the server resolution, so it's not performance critical.
* | | | Merge branch 'exittimer' of https://github.com/CendioOssman/tigervncPierre Ossman2018-11-0915-157/+95
|\ \ \ \
| * | | | Get rid of SocketServer::checkTimeouts()Pierre Ossman2018-11-096-27/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't belong on each socket server object as timers are global. Force implementations to call the Timer system directly instead, avoiding any middle men.
| * | | | Change idle timeout to timerPierre Ossman2018-11-093-50/+25
| | | | | | | | | | | | | | | | | | | | | | | | | Get this timeout in to the timer system as well to make things simpler and more robust.
| * | | | Properly terminate server on timeoutsPierre Ossman2018-11-099-4/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do a proper cleanup when one of the termination timeouts trigger rather than just exiting on the spot. This makes sure we don't leave stray stuff around, e.g. unix socket files.
| * | | | Change exit timeouts to timersPierre Ossman2018-11-092-79/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes them more consistent with everything else, which makes things clearer and also allows them to handle some corner cases (e.g. only firing once).
* | | | | Merge branch 'vncserver' of https://github.com/CendioOssman/tigervncPierre Ossman2018-11-0925-537/+654
|\| | | | | |_|/ / |/| | |
| * | | Clean up headersPierre Ossman2018-11-092-10/+17
| | | | | | | | | | | | | | | | Add missing comments and clearly separate methods from attributes.
| * | | Remove unused functions from server classesPierre Ossman2018-11-092-11/+0
| | | |
| * | | Make throwConnFailedException() protectedPierre Ossman2018-11-091-5/+5
| | | | | | | | | | | | | | | | | | | | It is an internal function so it has no business being public. Compare with CConnection where it is already private.
| * | | Remove writeConnFailedFromScratch()Pierre Ossman2018-11-093-18/+7
| | | | | | | | | | | | | | | | It is static and only used from a single place, so let's inline it.
| * | | Remove comments about self-deleting connectionsPierre Ossman2018-11-091-9/+2
| | | | | | | | | | | | | | | | It isn't true so remove those comments.
| * | | Stop trying to send ListConnInfo via WM_COPYDATAPierre Ossman2018-11-092-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Windows tries to do a copy of it, and it is too complex to survive that. Just reference the object directly as we know the source of the message here.
| * | | Move ListConnInfo to WinVNC directoryPierre Ossman2018-11-0913-132/+146
| | | | | | | | | | | | | | | | | | | | It is functionality specific to WinVNC, so move the code there to make things more clear.
| * | | Inherit SocketServer directly from VNCServerPierre Ossman2018-10-265-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes VNCServer a sufficiently complete interface that callers don't need to know about the specific implementation (VNCServerST currently). And assuming that all servers will use sockets is not that outrageous.
| * | | Encapsulate client handling in VNCServerSTPierre Ossman2018-10-265-70/+98
| | | | | | | | | | | | | | | | | | | | | | | | Removed the last parts of VNCSConnectionST's back door in to VNCServerST and let the parent class fully handle coordination of clients, and access to the desktop.
| * | | Move access rights and closing to SConnection objectPierre Ossman2018-10-107-52/+88
| | | | | | | | | | | | | | | | | | | | This makes it generally useful and other code doesn't have to know of the specific sub-class.
| * | | Encapsulate setDesktopSize() in VNCServerSTPierre Ossman2018-10-103-32/+38
| | | | | | | | | | | | | | | | | | | | More encapsulation of functions that require coordinate between clients.
| * | | Encapsulate event handling in VNCServerSTPierre Ossman2018-10-103-36/+66
| | | | | | | | | | | | | | | | | | | | | | | | There is some client coordination needed which is better encapsulated inside VNCServerST. This also helps hiding the desktop from the individual clients.
| * | | Use accessor methods for VNCServerSTPierre Ossman2018-10-103-34/+35
| | | | | | | | | | | | | | | | | | | | Avoid having VNCSConnectionST poking around in VNCServerST's internals and instead access things via safer methods.
| * | | Remove QueryConnectionHandlerPierre Ossman2018-10-1014-103/+157
| | | | | | | | | | | | | | | | | | | | Make things simpler by making this a part of the SDesktop interface that always needs to be implemented.
| * | | Force common flow of connection queriesPierre Ossman2018-10-098-63/+34
| | | | | | | | | | | | | | | | | | | | | | | | Force queryConnection() to always call back to approveConnection() rather than return special values. This makes the flow easier to follow as it will be the same in all cases.
* | | | Fixed handling of AltGr from Windows' touch keyboardPierre Ossman2018-11-061-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | We need to test this always in order to catch Ctrl+AltGr, and to handle release of the key properly. Hopefully there isn't any other case where VK_MENU is sent without a scan code.
* | | | Handle AltGr from Windows' touch keyboardPierre Ossman2018-11-061-0/+7
| | | |
* | | | Adjust XDamage tracking to geometryPierre Ossman2018-11-051-0/+2
| |_|/ |/| | | | | | | | | | | We might have an offset in the area of the screen we're tracking, so make sure that offset is included in the changes we report.
* | | Merge branch 'nojava' of https://github.com/CendioOssman/tigervncPierre Ossman2018-10-2632-1348/+12
|\| |
| * | Remove Java web serverPierre Ossman2018-10-0932-1348/+12
| | | | | | | | | | | | | | | Applets don't work anymore so remove everything that has to do with serving them.
* | | Merge branch 'x0vncserver-run-destructors' of ↵Pierre Ossman2018-10-261-0/+7
|\ \ \ | | | | | | | | | | | | https://github.com/x11clone/x11clone
| * | | Run listener destructors before terminatingPeter Åstrand (astrand)2018-10-231-0/+7
| | |/ | |/| | | | | | | Must be done in order to remove UNIX sockets etc.
* | | Merge branch 'master' of https://github.com/grulja/tigervncPierre Ossman2018-10-261-1/+1
|\ \ \
| * | | Avoid potential crash when replacing buffer in PlainPasswdJan Grulich2018-10-031-1/+1
| |/ /
* | | Fix rendering on big endian systemPierre Ossman2018-10-252-8/+34
| | | | | | | | | | | | | | | | | | Our XRender code assumes a certain pixel layout which was not guaranteed on big endian systems. The previous workaround only worked for some cases, so fix this properly now.
* | | Adjust some strings so they are easier to translatePierre Ossman2018-10-251-5/+8
| | |
* | | Update Danish translationjoe Hansen2018-10-231-98/+169
| | |
* | | Document tests for server keyboard handlingPierre Ossman2018-10-191-0/+37
| | |
* | | Clarify some keyboard test detailsPierre Ossman2018-10-191-5/+9
| | |
* | | Change to https for tigervnc URLPierre Ossman2018-10-1919-19/+19
| | | | | | | | | | | | Our main web site now supports https, so update all references.
* | | Log TLS handshake resultPierre Ossman2018-10-092-1/+5
| |/ |/| | | | | | | Makes it easier to debug TLS issues, and to see the effect of altering the priority string.
* | Include unix socket in vncviewer usagePierre Ossman2018-09-282-4/+17
|/ | | | | | | | We've had support for unix sockets for a while now. Make sure this is reflected in the -help output and the man page. Also make some minor tweaks to the section to get everything in sync with reality.
* Merge branches 'meta' and 'tlscrash' of https://github.com/CendioOssman/tigervncPierre Ossman2018-09-2144-167/+349
|\
| * Restore original streams when terminating TLSPierre Ossman2018-09-214-2/+27
| | | | | | | | | | | | In theory we could return to communicate without TLS after a shutdown. It also makes sure the connection object isn't left completely without streams.
| * Delete TLS streams before deleting the sessionPierre Ossman2018-09-214-33/+40
| | | | | | | | | | | | The streams depend on the session and can crash the program if they are removed in the wrong order. Do a general cleanup of the life time management of the streams.
| * Strongly bind security objects to connection objectPierre Ossman2018-09-2130-93/+123
| | | | | | | | | | There is already an implicit connection between them, so let's make it explicit. This allows easy lookup outside of the processMsg() function.
| * Initialise CSecurityTLS::cert_cred properlyPierre Ossman2018-09-211-1/+1
| | | | | | | | | | If we leave it at something random we'll get an invalid delete if the handshake fails.