Browse Source

rename ssl -> openssl, cv -> opencv

David Rose 20 years ago
parent
commit
6f4d4a4b66

+ 1 - 1
direct/src/distributed/Sources.pp

@@ -2,7 +2,7 @@
 
 #begin lib_target
   #define BUILD_TARGET $[HAVE_PYTHON]
-  #define USE_PACKAGES ssl nspr
+  #define USE_PACKAGES openssl nspr
 
   #define TARGET distributed
   #define LOCAL_LIBS \

+ 21 - 21
direct/src/distributed/cConnectionRepository.cxx

@@ -45,7 +45,7 @@ CConnectionRepository(bool has_owner_view) :
 #ifdef HAVE_PYTHON
   _python_repository(NULL),
 #endif
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   _http_conn(NULL),
 #endif
 #ifdef HAVE_NSPR
@@ -77,7 +77,7 @@ CConnectionRepository::
   disconnect();
 }
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
 ////////////////////////////////////////////////////////////////////
 //     Function: CConnectionRepository::set_connection_http
 //       Access: Published
@@ -97,9 +97,9 @@ set_connection_http(HTTPChannel *channel) {
   }
 #endif
 }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
 ////////////////////////////////////////////////////////////////////
 //     Function: CConnectionRepository::get_stream
 //       Access: Published
@@ -111,7 +111,7 @@ SocketStream *CConnectionRepository::
 get_stream() {
   return _http_conn;
 }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 
 
 #ifdef HAVE_NSPR
@@ -161,11 +161,11 @@ start_delay(double min_delay, double max_delay) {
 #ifdef HAVE_NSPR
     _qcr.start_delay(min_delay, max_delay);
 #endif  // HAVE_NSPR
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
     if (_http_conn != (SocketStream *)NULL) {
       _http_conn->start_delay(min_delay, max_delay);
     }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
   } else {
     stop_delay();
   }
@@ -185,11 +185,11 @@ stop_delay() {
 #ifdef HAVE_NSPR
   _qcr.stop_delay();
 #endif  // HAVE_NSPR
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   if (_http_conn != (SocketStream *)NULL) {
     _http_conn->stop_delay();
   }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 }
 #endif  // SIMULATE_NETWORK_DELAY
 
@@ -298,7 +298,7 @@ is_connected() {
   }
 #endif  // HAVE_NSPR
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   if (_http_conn) {
     if (!_http_conn->is_closed()) {
       return true;
@@ -308,7 +308,7 @@ is_connected() {
     delete _http_conn;
     _http_conn = NULL;
   }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 
   return false;
 }
@@ -342,7 +342,7 @@ send_datagram(const Datagram &dg) {
   }
 #endif  // HAVE_NSPR
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   if (_http_conn) {
     if (!_http_conn->send_datagram(dg)) {
       distributed_cat.warning()
@@ -352,7 +352,7 @@ send_datagram(const Datagram &dg) {
 
     return true;
   }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 
   distributed_cat.warning()
     << "Unable to send datagram after connection is closed.\n";
@@ -378,11 +378,11 @@ consider_flush() {
   }
 #endif  // HAVE_NSPR
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   if (_http_conn) {
     return _http_conn->consider_flush();
   }
-#endif  // HAVE_SSL
+#endif  // HAVE_OPENSSL
 
   return false;
 }
@@ -406,11 +406,11 @@ flush() {
   }
   #endif  // HAVE_NSPR
 
-  #ifdef HAVE_SSL
+  #ifdef HAVE_OPENSSL
   if (_http_conn) {
     return _http_conn->flush();
   }
-  #endif  // HAVE_SSL
+  #endif  // HAVE_OPENSSL
 
   return false;
 }
@@ -429,13 +429,13 @@ disconnect() {
   }
   #endif  // HAVE_NSPR
 
-  #ifdef HAVE_SSL
+  #ifdef HAVE_OPENSSL
   if (_http_conn) {
     _http_conn->close();
     delete _http_conn;
     _http_conn = NULL;
   }
-  #endif  // HAVE_SSL
+  #endif  // HAVE_OPENSSL
 
   _simulated_disconnect = false;
 }
@@ -459,12 +459,12 @@ do_check_datagram() {
   }
   #endif  // HAVE_NSPR
 
-  #ifdef HAVE_SSL
+  #ifdef HAVE_OPENSSL
   if (_http_conn) {
     _http_conn->consider_flush();
     return _http_conn->receive_datagram(_dg);
   }
-  #endif  // HAVE_SSL
+  #endif  // HAVE_OPENSSL
 
   return false;
 }

+ 2 - 2
direct/src/distributed/cConnectionRepository.h

@@ -69,7 +69,7 @@ PUBLISHED:
   INLINE void set_python_repository(PyObject *python_repository);
 #endif
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   void set_connection_http(HTTPChannel *channel);
   SocketStream *get_stream();
 #endif
@@ -129,7 +129,7 @@ private:
   PyObject *_python_repository;
 #endif
 
-#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL
   SocketStream *_http_conn;
 #endif