Alex Richardson
9d2b692afd
Allow building with -DBUILD_VIEWER=OFF
Without this change I get CMake errors due to use of ${FLTK_INCLUDE_DIR}
and references to the non-existent vncviewer target.
2 роки тому
Pierre Ossman
dfc9421dcf
Merge branch 'utilize-system-wide-crypto' of https://github.com/grulja/tigervnc
2 роки тому
Jan Grulich
9b96266830
Utilize system-wide crypto policies
2 роки тому
Pierre Ossman
bbc7a5733b
Merge branch 'xvfb' of https://github.com/CendioOssman/tigervnc
2 роки тому
Pierre Ossman
ed079a4049
Remove vfb references from symbol names
Xvnc was originally based on Xvfb, but it's just confusing to keep the
names. So change all prefix to "vnc" instead to clearly mark things as
part of TigerVNC.
2 роки тому
Pierre Ossman
ad76ff3c46
Remove zaphod mode from Xvnc
It isn't really useful as it behaves just like starting multiple
servers, so remove it in favour of keeping things simple.
2 роки тому
Pierre Ossman
30eed8c080
Remove undocumented -linebias argument
This is a development flag with no real use, so remove it to clean up
the code.
2 роки тому
Pierre Ossman
2dd5ce00a4
Clean up Xvnc screen struct
Remove stuff we don't use, and get it more in sync with Xvfb for easier
comparison.
2 роки тому
Pierre Ossman
bbaf7b4193
Remove unused headers
2 роки тому
Pierre Ossman
427fe2ecfd
Remove obsolete AIX hack
2 роки тому
Pierre Ossman
acee988155
Remove obsolete comment about backing store
This was removed years ago.
2 роки тому
Pierre Ossman
a52d8757df
Remove CloseScreen() wrapper
The memory leak this worked around was fixed in X.org 1.16.
2 роки тому
Pierre Ossman
c11f8f9930
Do all RandR init in vncRandRInit()
Keep everything in one place to make it easier to read.
This also removes the call to RRInit() as that is done implicitly
anyway.
2 роки тому
Pierre Ossman
d5cddf4b04
Use central SetRootClip()
There's been a common one since X.org 1.11, so use that instead of our
own copy.
2 роки тому
Pierre Ossman
c4397676a1
Remove Darwin code from Xvnc
We don't build for that platform anyway, so this is just a remnant from
Xvfb.
2 роки тому
Pierre Ossman
0480267070
Handle X.org patch level features
With the 1.20.x releases there has been features and API changes even on
patch level versions, so we need to update our macros to handle these as
well.
2 роки тому
Pierre Ossman
b738b54049
Remove shared memory framebuffer option
This is a pointless remnant of Xvfb. We never print the id of the shared
memory, so no other application can access this memory anyway.
2 роки тому
Pierre Ossman
e6a532ae9d
Remove more color map code from Xvnc
This hasn't been supported or used in many years, so clean out the final
remnants.
2 роки тому
Pierre Ossman
828ff0e662
Remove DDXTIME code
This hasn't been used since xorg-server 1.1 so get rid of it.
2 роки тому
Pierre Ossman
0d255914de
Call FatalError() on bad Xvnc arguments
This is consistent with other ddx behaviour.
2 роки тому
Pierre Ossman
53ff8a2eec
Use CHECK_FOR_REQUIRED_ARGUMENTS() for arg check
This is what all the other ddx variants use, so do the same in Xvnc to
be consistent.
2 роки тому
Pierre Ossman
43bfc0971f
Apply Xorg coding style to xvnc.c
Makes it easier to compare with upstream files as the formatting will be
the same.
2 роки тому
Pierre Ossman
952bfab6e1
Remove #ifdef RENDER
RENDER has been mandatory since xorg-server 1.9, so remove these
checks.
2 роки тому
Pierre Ossman
12c0f326e1
Move ddxInputThreadInit() to xvnc.c
This should only be in the ddx parts of an X server, and Input.c is used
by libvnc.so as well and can cause conflicts there.
2 роки тому
Pierre Ossman
5ebcee5c58
Remove Ubuntu rethrow signals patch
This was removed from Ubunut's X.org packages years ago, so drop it from
our packing as well.
2 роки тому
Pierre Ossman
86a564a706
Correctly handle screen layout with offset
We miscalculated the screen layout if the geometry had an offset as we
adjusted the real screen layout to account for the offset, but compared
it to the unadjusted geometry.
3 роки тому
Pierre Ossman
9ec1f360de
Merge branch 'smooth-edge-scrolling' of https://github.com/ToyKeeper/tigervnc
3 роки тому
Pierre Ossman
dff1442d2a
Merge branch 'master' of https://github.com/jasonsikes/tigervnc
3 роки тому
Pierre Ossman
a29fe72102
Avoid some variable aliasing
3 роки тому
Pierre Ossman
0517ae84eb
Remove unnecessary header include
3 роки тому
Pierre Ossman
775d432ec7
Use <user>@<hostname> as the default desktop name
Is a lot more useful default than the previous "x11", or "x0vncserver".
At the same time give x0vncserver a parameter to change the name.
3 роки тому
Pierre Ossman
960c7d2ff3
Clean up default value for X509 parameters
Let's avoid making this too complex and force every user to know about
magical functions.
3 роки тому
JASON SIKES
fb61fe8fdc
Use RFC7919-2048 group in GnuTLS for FIPS compliance.
3 роки тому
Pierre Ossman
6558d20683
Keep own memory for duplicate config value
Allows the default value to be dynamically generated in a buffer that is
reused.
3 роки тому
Pierre Ossman
cd6e51f926
Remove unused LogParameter::setDefault()
3 роки тому
Pierre Ossman
17aee63066
Don't list clipboard parameters for x0vncserver
Better to just hide these parameters rather than stating that they are
unused in the man page.
3 роки тому
Pierre Ossman
586645a0f0
Merge branch 'tls' of https://github.com/CendioOssman/tigervnc
3 роки тому
Pierre Ossman
e779322f05
Don't wait for TLS close response
Our current architecture doesn't support waiting for a response here, so
don't even try or we'll just get an error.
3 роки тому
Pierre Ossman
14d21d7b44
Handle GnuTLS shutdown on dead session
The session might have died, or failed to initialise properly, so be
prepared for gnutls_bye() to be unable to do its job.
3 роки тому
Pierre Ossman
fa2d8cd455
Properly clean up client VeNCrypt handling
We would leak the security module below the top client VeNCrypt module,
meaning that those modules would not get a chance to shut down
gracefully.
3 роки тому
Pierre Ossman
cef285311f
Remove unneeded NULL checks
It's perfectly safe to delete NULL pointers, so simplify things by
removing these checks.
3 роки тому
Pierre Ossman
9c407d2a0b
Propagate exceptions from GnuTLS push/pull functions
Gives us a more meaningful error rather than just "Error in push/pull
function".
3 роки тому
Pierre Ossman
d1ad6b5c25
Remove early data check for TLSInStream
Having this early check means that we somewhat randomly get different
exception behaviours on errors in deeper layers as some exceptions are
allowed to propagate unhindered and some are not (since they are thrown
in the pull function).
3 роки тому
Pierre Ossman
aa224673e4
Propagate errno to GnuTLS
Give GnuTLS the correct errno from deeper layers, in the cases where we
know it. In most cases GnuTLS doesn't care, but just in case...
3 роки тому
Pierre Ossman
1b00e99722
Merge branch 'actions' of https://github.com/CendioOssman/tigervnc
3 роки тому
Pierre Ossman
abcabc5a9e
Convert CI to GitHub Actions
Travis has unfortunately been severely rate limited by Docker Hub so we
have to switch to GitHub, which has an agreement with Docker to avoid
the rate limiting.
3 роки тому
Pierre Ossman
8616c0bd67
Don't run container builds with a TTY
No TTY is provided in GitHub's environment, so we cannot have this flag.
3 роки тому
Pierre Ossman
500a495773
Force update of libarchive in CentOS 8 image
Otherwise cmake breaks as it requires a newer version without properly
listing that in its dependencies.
3 роки тому
Pierre Ossman
087895a2f8
Disable nonliteral format warnings on clang
These are incompatible with functions such as gettext() as clang hasn't
implemented the function attribute function_arg.
3 роки тому
Pierre Ossman
a616f0938a
Boot strap github actions
A initial workflow needs to be defined for actions to trigger on pull
requests, so just add a minimal, dummy one.
3 роки тому