Browse Source

build without SSL

David Rose 23 years ago
parent
commit
74f458b674

+ 2 - 0
panda/src/downloader/config_downloader.cxx

@@ -63,5 +63,7 @@ const int patcher_buffer_size =
         config_downloader.GetInt("patcher-buffer-size", 4096);
 
 ConfigureFn(config_downloader) {
+#ifdef HAVE_SSL
   HTTPDocument::init_type();
+#endif
 }

+ 4 - 0
panda/src/downloader/httpClient.cxx

@@ -19,6 +19,8 @@
 #include "httpClient.h"
 #include "config_downloader.h"
 
+#ifdef HAVE_SSL
+
 #ifndef NDEBUG
 #include <openssl/err.h>
 #endif
@@ -287,3 +289,5 @@ send_get_request(BIO *bio,
   }
   BIO_puts(bio, request_str.c_str());
 }
+
+#endif  // HAVE_SSL

+ 4 - 0
panda/src/downloader/httpDocument.cxx

@@ -20,6 +20,8 @@
 #include "bioStream.h"
 #include "chunkedStream.h"
 
+#ifdef HAVE_SSL
+
 TypeHandle HTTPDocument::_type_handle;
 
 ////////////////////////////////////////////////////////////////////
@@ -253,3 +255,5 @@ read_headers() {
 
   // A blank line terminates the headers.
 }
+
+#endif  // HAVE_SSL