diff options
author | Jose <jose@zeroc.com> | 2017-01-02 18:06:44 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-01-02 18:06:44 +0100 |
commit | 2df05d130ae51a65f51c593800ad722d533f5df3 (patch) | |
tree | 1c4c0c03245a69cdefb949a0060e5642e00aaeed /cpp/src/IceSSL/Util.h | |
parent | Update VisualStdio Ice project filters (diff) | |
download | ice-2df05d130ae51a65f51c593800ad722d533f5df3.tar.bz2 ice-2df05d130ae51a65f51c593800ad722d533f5df3.tar.xz ice-2df05d130ae51a65f51c593800ad722d533f5df3.zip |
Fixed (ICE-7477) - Use native Base64 encode/decode
Diffstat (limited to 'cpp/src/IceSSL/Util.h')
-rw-r--r-- | cpp/src/IceSSL/Util.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/cpp/src/IceSSL/Util.h b/cpp/src/IceSSL/Util.h index fc6af1020cc..ed706a6973e 100644 --- a/cpp/src/IceSSL/Util.h +++ b/cpp/src/IceSSL/Util.h @@ -109,63 +109,6 @@ std::string getSslErrors(bool); #elif defined(ICE_USE_SECURE_TRANSPORT) -template<typename T> -class UniqueRef -{ -public: - - explicit UniqueRef(CFTypeRef ptr = 0) : _ptr((T)ptr) - { - } - - ~UniqueRef() - { - if(_ptr != 0) - { - CFRelease(_ptr); - } - } - - T release() - { - T r = _ptr; - _ptr = 0; - return r; - } - - void reset(CFTypeRef ptr = 0) - { - if(_ptr == ptr) - { - return; - } - if(_ptr != 0) - { - CFRelease(_ptr); - } - _ptr = (T)ptr; - } - - void retain(CFTypeRef ptr) - { - reset(ptr ? CFRetain(ptr) : ptr); - } - - T get() const - { - return _ptr; - } - - operator bool() const - { - return _ptr != 0; - } - -private: - - T _ptr; -}; - // // Helper functions to use by Secure Transport. // |