summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CryptKey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/CryptKey.cpp')
-rw-r--r--cpp/src/Ice/CryptKey.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/src/Ice/CryptKey.cpp b/cpp/src/Ice/CryptKey.cpp
new file mode 100644
index 00000000000..3dd16371587
--- /dev/null
+++ b/cpp/src/Ice/CryptKey.cpp
@@ -0,0 +1,50 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <Ice/CryptKey.h>
+
+using Ice::ByteSeq;
+
+void ::IceInternal::incRef(::IceSecurity::SecureUdp::CryptKey* p) { p->__incRef(); }
+void ::IceInternal::decRef(::IceSecurity::SecureUdp::CryptKey* p) { p->__decRef(); }
+
+IceSecurity::SecureUdp::CryptKey::CryptKey(const ByteSeq& key) :
+ _keyBytes(key)
+{
+}
+
+IceSecurity::SecureUdp::CryptKey::~CryptKey()
+{
+}
+
+const ByteSeq&
+IceSecurity::SecureUdp::CryptKey::toByteSeq() const
+{
+ return _keyBytes;
+}
+
+bool
+IceSecurity::SecureUdp::CryptKey::operator == (const CryptKey& key) const
+{
+ return _keyBytes == key._keyBytes;
+}
+
+bool
+IceSecurity::SecureUdp::CryptKey::operator != (const CryptKey& key) const
+{
+ return !operator==(key);
+}
+
+bool
+IceSecurity::SecureUdp::CryptKey::operator < (const CryptKey& key) const
+{
+ return _keyBytes < key._keyBytes;
+}
+