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
This commit is contained in:
Michal Srb 2014-08-04 10:55:13 +00:00 committed by Git OBS Bridge
parent fbb4eeb8fc
commit f8d64d14e7
3 changed files with 31 additions and 0 deletions

View File

@ -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<rdr::U8> result;
list<U32>::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;
}

View File

@ -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

View File

@ -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