summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CryptKey.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-01-21 18:25:23 +0000
committerAnthony Neal <aneal@zeroc.com>2002-01-21 18:25:23 +0000
commitaf55fcdcfb0857a3516f30fb61176ffe9bc31110 (patch)
treed92b8bd808ab3f6420e2733295024d1fbf6a1d7b /cpp/src/Ice/CryptKey.cpp
parentadding server; removing wstring (diff)
downloadice-af55fcdcfb0857a3516f30fb61176ffe9bc31110.tar.bz2
ice-af55fcdcfb0857a3516f30fb61176ffe9bc31110.tar.xz
ice-af55fcdcfb0857a3516f30fb61176ffe9bc31110.zip
Update of SUDP (Secure UDP) related code. SUDP is still not active, but
compiles as is under Linux and Windows.
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;
+}
+