Magellan Linux

Annotation of /trunk/vnc/patches/vnc-authentication.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 637 - (hide annotations) (download)
Tue Jun 3 20:32:55 2008 UTC (16 years ago) by niro
File size: 802 byte(s)
-added several new fixes from fedora

1 niro 637 --- vnc-4_1_1-unixsrc/common/rfb/SConnection.cxx.authentication 2005-03-11 16:08:41.000000000 +0100
2     +++ vnc-4_1_1-unixsrc/common/rfb/SConnection.cxx 2006-05-17 16:15:54.000000000 +0200
3     @@ -181,6 +181,15 @@
4     vlog.info("Client requests security type %s(%d)",
5     secTypeName(secType),secType);
6    
7     + // Verify that the requested security type should be offered
8     + std::list<rdr::U8> secTypes;
9     + std::list<rdr::U8>::iterator i;
10     + securityFactory->getSecTypes(&secTypes, reverseConnection);
11     + for (i=secTypes.begin(); i!=secTypes.end(); i++)
12     + if (*i == secType) break;
13     + if (i == secTypes.end())
14     + throw Exception("Requested security type not available");
15     +
16     try {
17     state_ = RFBSTATE_SECURITY;
18     security = securityFactory->getSSecurity(secType, reverseConnection);