From f8d64d14e7e8b0b1c0d22a46c8476d9ba4b10bf2723246b03fd9ebe604d4f595 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 4 Aug 2014 10:55:13 +0000 Subject: [PATCH] Accepting request 243583 from home:michalsrb:branches:X11:XOrg - U_include-vencrypt-only-if-any-subtype-present.patch * Do not automatically offer VeNCrypt security if none of it's subtypes is selected. (bnc#889781) OBS-URL: https://build.opensuse.org/request/show/243583 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=34 --- ...vencrypt-only-if-any-subtype-present.patch | 22 +++++++++++++++++++ tigervnc.changes | 7 ++++++ tigervnc.spec | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 U_include-vencrypt-only-if-any-subtype-present.patch diff --git a/U_include-vencrypt-only-if-any-subtype-present.patch b/U_include-vencrypt-only-if-any-subtype-present.patch new file mode 100644 index 0000000..406f316 --- /dev/null +++ b/U_include-vencrypt-only-if-any-subtype-present.patch @@ -0,0 +1,22 @@ +Index: common/rfb/Security.cxx +=================================================================== +--- common/rfb/Security.cxx (revision 5186) ++++ common/rfb/Security.cxx (working copy) +@@ -71,10 +71,15 @@ + list result; + list::iterator i; + +- result.push_back(secTypeVeNCrypt); ++ bool VeNCryptPresent = false; + for (i = enabledSecTypes.begin(); i != enabledSecTypes.end(); i++) +- if (*i < 0x100) ++ if (*i < 0x100) { + result.push_back(*i); ++ } else { ++ if(!VeNCryptPresent) ++ result.push_back(secTypeVeNCrypt); ++ VeNCryptPresent = true; ++ } + + return result; + } diff --git a/tigervnc.changes b/tigervnc.changes index 18a0d3d..af11f88 100644 --- a/tigervnc.changes +++ b/tigervnc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 4 10:37:08 UTC 2014 - msrb@suse.com + +- U_include-vencrypt-only-if-any-subtype-present.patch + * Do not automatically offer VeNCrypt security if none of it's + subtypes is selected. (bnc#889781) + ------------------------------------------------------------------- Wed Jun 4 11:39:54 UTC 2014 - msrb@suse.com diff --git a/tigervnc.spec b/tigervnc.spec index 89ebb13..050887a 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -108,6 +108,7 @@ Patch5: tigervnc-sf3495623.patch Patch6: u_tigervnc-dont-send-ascii-control-characters.patch Patch7: u_tigervnc-ignore-epipe-on-write.patch Patch8: n_tigervnc-date-time.patch +Patch9: U_include-vencrypt-only-if-any-subtype-present.patch # Xserver patches Patch10: tigervnc-1.2.80-fix-int-to-pointer.patch Patch11: u_aarch64-support.patch @@ -148,6 +149,7 @@ fi %patch6 -p0 %patch7 -p0 %patch8 -p1 +%patch9 -p0 pushd unix/xserver patch -p1 < ../xserver114.patch %patch10 -p1