From 74f458b674d50ab137d8ac58c00ca0cf745df88e Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 25 Sep 2002 22:01:37 +0000 Subject: [PATCH] build without SSL --- panda/src/downloader/config_downloader.cxx | 2 ++ panda/src/downloader/httpClient.cxx | 4 ++++ panda/src/downloader/httpDocument.cxx | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/panda/src/downloader/config_downloader.cxx b/panda/src/downloader/config_downloader.cxx index d001af37b0..ba5ca4045a 100644 --- a/panda/src/downloader/config_downloader.cxx +++ b/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 } diff --git a/panda/src/downloader/httpClient.cxx b/panda/src/downloader/httpClient.cxx index c37433b981..d014334387 100644 --- a/panda/src/downloader/httpClient.cxx +++ b/panda/src/downloader/httpClient.cxx @@ -19,6 +19,8 @@ #include "httpClient.h" #include "config_downloader.h" +#ifdef HAVE_SSL + #ifndef NDEBUG #include #endif @@ -287,3 +289,5 @@ send_get_request(BIO *bio, } BIO_puts(bio, request_str.c_str()); } + +#endif // HAVE_SSL diff --git a/panda/src/downloader/httpDocument.cxx b/panda/src/downloader/httpDocument.cxx index f7881effe6..f30ade6912 100644 --- a/panda/src/downloader/httpDocument.cxx +++ b/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