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

Log Message:
-----------
[Bugfix] Append ".pem" suffix to saved certificates.

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

Modified: trunk/common/rfb/CSecurityTLS.cxx
===================================================================
--- trunk/common/rfb/CSecurityTLS.cxx   2011-02-07 10:45:50 UTC (rev 4253)
+++ trunk/common/rfb/CSecurityTLS.cxx   2011-02-07 10:46:16 UTC (rev 4254)
@@ -95,10 +95,10 @@
   }
 
   int len = strlen(homeDir) + 1;
-  CharArray caDefault(len + 7);
-  CharArray crlDefault(len + 8);
-  sprintf(caDefault.buf, "%sx509_ca", homeDir);
-  sprintf(crlDefault.buf, "%s509_crl", homeDir);
+  CharArray caDefault(len + 11);
+  CharArray crlDefault(len + 12);
+  sprintf(caDefault.buf, "%sx509_ca.pem", homeDir);
+  sprintf(crlDefault.buf, "%s509_crl.pem", homeDir);
   delete [] homeDir;
 
   x509ca.setDefaultStr(strdup(caDefault.buf));
@@ -349,8 +349,8 @@
         vlog.error("Could not obtain VNC home directory path");
       else {
        FILE *f;
-       CharArray caSave(strlen(homeDir) + 11);
-       sprintf(caSave.buf, "%sx509_certs", homeDir);
+       CharArray caSave(strlen(homeDir) + 1 + 19);
+       sprintf(caSave.buf, "%sx509_savedcerts.pem", homeDir);
        delete [] homeDir;
                f = fopen(caSave.buf, "a+");
        if (!f)


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