diff options
Diffstat (limited to 'common/rfb/CSecurityTLS.cxx')
-rw-r--r-- | common/rfb/CSecurityTLS.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index 3877fe45..d0b689a2 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -101,8 +101,10 @@ void CSecurityTLS::setDefaults() 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() |