Revision: 4256
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4256&view=rev
Author:   atkac
Date:     2011-02-07 10:47:07 +0000 (Mon, 07 Feb 2011)

Log Message:
-----------
[Bugfix] Print empty string by default when paths for X.509 certs don't exist.

Modified Paths:
--------------
    trunk/common/rfb/CSecurityTLS.cxx

Modified: trunk/common/rfb/CSecurityTLS.cxx
===================================================================
--- trunk/common/rfb/CSecurityTLS.cxx   2011-02-07 10:46:45 UTC (rev 4255)
+++ trunk/common/rfb/CSecurityTLS.cxx   2011-02-07 10:47:07 UTC (rev 4256)
@@ -101,8 +101,10 @@
   sprintf(crlDefault.buf, "%s509_crl.pem", homeDir);
   delete [] homeDir;
 
-  x509ca.setDefaultStr(strdup(caDefault.buf));
-  x509crl.setDefaultStr(strdup(crlDefault.buf));
+ if (!fileexists(caDefault.buf))
+   x509ca.setDefaultStr(strdup(caDefault.buf));
+ if (!fileexists(crlDefault.buf))
+   x509crl.setDefaultStr(strdup(crlDefault.buf));
 }
 
 void CSecurityTLS::shutdown()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to