rename ssl -> openssl, cv -> opencv
This commit is contained in:
parent
a7b1f14e80
commit
6f4d4a4b66
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue