diff options
Diffstat (limited to 'cpp/src/IceSSL')
-rwxr-xr-x | cpp/src/IceSSL/Certificate.cpp | 26 | ||||
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.h | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/SChannelTransceiverI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/SChannelTransceiverI.h | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/SecureTransportEngine.cpp | 1 | ||||
-rw-r--r-- | cpp/src/IceSSL/SecureTransportTransceiverI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/SecureTransportTransceiverI.h | 4 | ||||
-rwxr-xr-x | cpp/src/IceSSL/WinRTTransceiverI.cpp | 4 | ||||
-rwxr-xr-x | cpp/src/IceSSL/WinRTTransceiverI.h | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/uwp/TransceiverI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/uwp/TransceiverI.h | 5 |
12 files changed, 6 insertions, 62 deletions
diff --git a/cpp/src/IceSSL/Certificate.cpp b/cpp/src/IceSSL/Certificate.cpp index 7fb39540760..1d1a545e7a4 100755 --- a/cpp/src/IceSSL/Certificate.cpp +++ b/cpp/src/IceSSL/Certificate.cpp @@ -597,7 +597,7 @@ certificateAltNames(Windows::Security::Cryptography::Certificates::SubjectAltern #endif CertificateReadException::CertificateReadException(const char* file, int line, const string& r) : - Exception(file, line), + ExceptionHelper<CertificateReadException>(file, line), reason(r) { } @@ -622,15 +622,9 @@ CertificateReadException::ice_clone() const } #endif -void -CertificateReadException::ice_throw() const -{ - throw *this; -} - #ifdef ICE_USE_SECURE_TRANSPORT CertificateEncodingException::CertificateEncodingException(const char* file, int line, CFErrorRef err) : - Exception(file, line) + ExceptionHelper<CertificateEncodingException>(file, line) { assert(err); reason = "certificate error:\n" + errorToString(err); @@ -639,7 +633,7 @@ CertificateEncodingException::CertificateEncodingException(const char* file, int #endif CertificateEncodingException::CertificateEncodingException(const char* file, int line, const string& r) : - Exception(file, line), + ExceptionHelper<CertificateEncodingException>(file, line), reason(r) { } @@ -664,12 +658,6 @@ CertificateEncodingException::ice_clone() const } #endif -void -CertificateEncodingException::ice_throw() const -{ - throw *this; -} - #ifdef ICE_USE_OPENSSL namespace @@ -843,7 +831,7 @@ convertGeneralNames(GENERAL_NAMES* gens) #endif ParseException::ParseException(const char* file, int line, const string& r) : - Exception(file, line), + ExceptionHelper<ParseException>(file, line), reason(r) { } @@ -868,12 +856,6 @@ ParseException::ice_clone() const } #endif -void -ParseException::ice_throw() const -{ - throw *this; -} - #ifdef ICE_USE_OPENSSL DistinguishedName::DistinguishedName(X509NAME* name) : _rdns(RFC2253::parseStrict(convertX509NameToString(name))) { diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp index de7fbb3ade6..75bc146e14f 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp @@ -307,11 +307,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B } IceInternal::SocketOperation -#ifdef ICE_CPP11_MAPPING -IceSSL::TransceiverI::closing(bool initiator, exception_ptr) -#else IceSSL::TransceiverI::closing(bool initiator, const Ice::LocalException&) -#endif { // If we are initiating the connection closure, wait for the peer // to close the TCP/IP connection. Otherwise, close immediately. diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.h b/cpp/src/IceSSL/OpenSSLTransceiverI.h index 58459e804b9..539c531355f 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.h +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.h @@ -39,11 +39,7 @@ public: virtual IceInternal::NativeInfoPtr getNativeInfo(); virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); -#ifdef ICE_CPP11_MAPPING - virtual IceInternal::SocketOperation closing(bool, std::exception_ptr); -#else virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); -#endif virtual void close(); virtual IceInternal::SocketOperation write(IceInternal::Buffer&); virtual IceInternal::SocketOperation read(IceInternal::Buffer&); diff --git a/cpp/src/IceSSL/SChannelTransceiverI.cpp b/cpp/src/IceSSL/SChannelTransceiverI.cpp index 87505808cd3..9409467e0ab 100644 --- a/cpp/src/IceSSL/SChannelTransceiverI.cpp +++ b/cpp/src/IceSSL/SChannelTransceiverI.cpp @@ -756,11 +756,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B } IceInternal::SocketOperation -#ifdef ICE_CPP11_MAPPING -IceSSL::TransceiverI::closing(bool initiator, exception_ptr) -#else IceSSL::TransceiverI::closing(bool initiator, const Ice::LocalException&) -#endif { // If we are initiating the connection closure, wait for the peer // to close the TCP/IP connection. Otherwise, close immediately. diff --git a/cpp/src/IceSSL/SChannelTransceiverI.h b/cpp/src/IceSSL/SChannelTransceiverI.h index dc9d8030b61..c70ade9a7e5 100644 --- a/cpp/src/IceSSL/SChannelTransceiverI.h +++ b/cpp/src/IceSSL/SChannelTransceiverI.h @@ -50,11 +50,7 @@ public: virtual IceInternal::NativeInfoPtr getNativeInfo(); virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); -#ifdef ICE_CPP11_MAPPING - virtual IceInternal::SocketOperation closing(bool, std::exception_ptr); -#else virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); -#endif virtual void close(); virtual IceInternal::SocketOperation write(IceInternal::Buffer&); virtual IceInternal::SocketOperation read(IceInternal::Buffer&); diff --git a/cpp/src/IceSSL/SecureTransportEngine.cpp b/cpp/src/IceSSL/SecureTransportEngine.cpp index 1876477794c..6dd7e82b233 100644 --- a/cpp/src/IceSSL/SecureTransportEngine.cpp +++ b/cpp/src/IceSSL/SecureTransportEngine.cpp @@ -11,6 +11,7 @@ #include <IceUtil/FileUtil.h> #include <IceUtil/StringUtil.h> +#include <IceUtil/MutexPtrLock.h> #include <Ice/LocalException.h> #include <Ice/Properties.h> diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp index f407e008913..9471070bfea 100644 --- a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +++ b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp @@ -318,11 +318,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B } IceInternal::SocketOperation -#ifdef ICE_CPP11_MAPPING -IceSSL::TransceiverI::closing(bool initiator, exception_ptr) -#else IceSSL::TransceiverI::closing(bool initiator, const Ice::LocalException&) -#endif { // If we are initiating the connection closure, wait for the peer // to close the TCP/IP connection. Otherwise, close immediately. diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.h b/cpp/src/IceSSL/SecureTransportTransceiverI.h index 71a2a6c5f34..59ac94b8584 100644 --- a/cpp/src/IceSSL/SecureTransportTransceiverI.h +++ b/cpp/src/IceSSL/SecureTransportTransceiverI.h @@ -37,11 +37,7 @@ public: virtual IceInternal::NativeInfoPtr getNativeInfo(); virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); -#ifdef ICE_CPP11_MAPPING - virtual IceInternal::SocketOperation closing(bool, std::exception_ptr); -#else virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); -#endif virtual void close(); virtual IceInternal::SocketOperation write(IceInternal::Buffer&); virtual IceInternal::SocketOperation read(IceInternal::Buffer&); diff --git a/cpp/src/IceSSL/WinRTTransceiverI.cpp b/cpp/src/IceSSL/WinRTTransceiverI.cpp index 5c7058a3d31..d9bca2912a9 100755 --- a/cpp/src/IceSSL/WinRTTransceiverI.cpp +++ b/cpp/src/IceSSL/WinRTTransceiverI.cpp @@ -55,11 +55,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B } IceInternal::SocketOperation -#ifdef ICE_CPP11_MAPPING -IceSSL::TransceiverI::closing(bool initiator, exception_ptr ex) -#else IceSSL::TransceiverI::closing(bool initiator, const Ice::LocalException& ex) -#endif { return _delegate->closing(initiator, ex); } diff --git a/cpp/src/IceSSL/WinRTTransceiverI.h b/cpp/src/IceSSL/WinRTTransceiverI.h index d3994eb359a..29d285175a6 100755 --- a/cpp/src/IceSSL/WinRTTransceiverI.h +++ b/cpp/src/IceSSL/WinRTTransceiverI.h @@ -34,11 +34,7 @@ public: virtual IceInternal::NativeInfoPtr getNativeInfo(); virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); -#ifdef ICE_CPP11_MAPPING - virtual IceInternal::SocketOperation closing(bool, std::exception_ptr); -#else virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); -#endif virtual void close(); virtual IceInternal::SocketOperation write(IceInternal::Buffer&); virtual IceInternal::SocketOperation read(IceInternal::Buffer&); diff --git a/cpp/src/IceSSL/uwp/TransceiverI.cpp b/cpp/src/IceSSL/uwp/TransceiverI.cpp index 06ef9f8a6e1..0ec28120a7f 100644 --- a/cpp/src/IceSSL/uwp/TransceiverI.cpp +++ b/cpp/src/IceSSL/uwp/TransceiverI.cpp @@ -88,11 +88,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer&, IceInternal::Buffer&) } IceInternal::SocketOperation -#ifdef ICE_CPP11_MAPPING -IceSSL::TransceiverI::closing(bool initiator, exception_ptr) -#else IceSSL::TransceiverI::closing(bool initiator, const Ice::LocalException&) -#endif { // If we are initiating the connection closure, wait for the peer // to close the TCP/IP connection. Otherwise, close immediately. diff --git a/cpp/src/IceSSL/uwp/TransceiverI.h b/cpp/src/IceSSL/uwp/TransceiverI.h index ef7a51fb7af..4e8b7e6c620 100644 --- a/cpp/src/IceSSL/uwp/TransceiverI.h +++ b/cpp/src/IceSSL/uwp/TransceiverI.h @@ -38,11 +38,8 @@ public: virtual void setCompletedHandler(IceInternal::SocketOperationCompletedHandler^); virtual IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&); -#ifdef ICE_CPP11_MAPPING - virtual IceInternal::SocketOperation closing(bool, std::exception_ptr); -#else + virtual IceInternal::SocketOperation closing(bool, const Ice::LocalException&); -#endif virtual void close(); virtual IceInternal::SocketOperation write(IceInternal::Buffer&); virtual IceInternal::SocketOperation read(IceInternal::Buffer&); |