diff options
author | Marc Laukien <marc@zeroc.com> | 2001-11-13 20:28:08 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-11-13 20:28:08 +0000 |
commit | 7d200cf8404655ce2e0ba62360d7030b67eb8514 (patch) | |
tree | 9de4d4a471480bb30a4bad05fcb3859a47a1b09e /cpp/src/Ice/ObjectAdapterI.cpp | |
parent | Added for testing purposes. "cacert.pem" is a self-signed Mutable Realms CA (diff) | |
download | ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.bz2 ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.xz ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.zip |
fixes
Diffstat (limited to 'cpp/src/Ice/ObjectAdapterI.cpp')
-rw-r--r-- | cpp/src/Ice/ObjectAdapterI.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp index 415c25d7249..86dbf9bfea4 100644 --- a/cpp/src/Ice/ObjectAdapterI.cpp +++ b/cpp/src/Ice/ObjectAdapterI.cpp @@ -19,7 +19,7 @@ #include <Ice/Exception.h> #include <Ice/Properties.h> #include <Ice/Functional.h> -
+ #ifdef WIN32 # include <sys/timeb.h> #else @@ -353,24 +353,15 @@ Ice::ObjectAdapterI::~ObjectAdapterI() deactivate(); } } -
+ ObjectPrx Ice::ObjectAdapterI::newProxy(const string& ident) { vector<EndpointPtr> endpoints; transform(_collectorFactories.begin(), _collectorFactories.end(), back_inserter(endpoints), Ice::constMemFun(&CollectorFactory::endpoint)); -
- // ASN: This is a bandaid
- bool makeSecure = false;
- size_t numSecureEndpoints = count_if(endpoints.begin(), endpoints.end(), Ice::constMemFun(&Endpoint::secure));
-
- if (numSecureEndpoints >= endpoints.size())
- {
- makeSecure = true;
- }
- - ReferencePtr reference = new Reference(_instance, ident, "", Reference::ModeTwoway, makeSecure /* false */, endpoints, endpoints); + + ReferencePtr reference = new Reference(_instance, ident, "", Reference::ModeTwoway, false, endpoints, endpoints); return _instance->proxyFactory()->referenceToProxy(reference); } |