Browse Source

ifdef openssl

David Rose 19 years ago
parent
commit
00ef82dc51
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dtool/src/prc/configPage.cxx

+ 4 - 0
dtool/src/prc/configPage.cxx

@@ -238,8 +238,12 @@ read_prc(istream &in) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 bool ConfigPage::
 bool ConfigPage::
 read_encrypted_prc(istream &in, const string &password) {
 read_encrypted_prc(istream &in, const string &password) {
+#ifdef HAVE_OPENSSL
   IDecryptStream decrypt(&in, false, password);
   IDecryptStream decrypt(&in, false, password);
   return read_prc(decrypt);
   return read_prc(decrypt);
+#else
+  return false;
+#endif  // HAVE_OPENSSL
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////