summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/MessageAuthenticator.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-03-13 20:10:07 +0000
committerAnthony Neal <aneal@zeroc.com>2002-03-13 20:10:07 +0000
commit27c5fa0a95a523c5bea82eecc420e805b4533aae (patch)
treeb18f7be9632d266d7e8f6c16b02de831a3e11d57 /cpp/src/Ice/MessageAuthenticator.cpp
parentcleanup (diff)
downloadice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.bz2
ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.xz
ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.zip
Refactor of SSL Extension, phase 1.
Diffstat (limited to 'cpp/src/Ice/MessageAuthenticator.cpp')
-rw-r--r--cpp/src/Ice/MessageAuthenticator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/Ice/MessageAuthenticator.cpp b/cpp/src/Ice/MessageAuthenticator.cpp
index 6ec4a1b2eb3..42207fbdcfa 100644
--- a/cpp/src/Ice/MessageAuthenticator.cpp
+++ b/cpp/src/Ice/MessageAuthenticator.cpp
@@ -12,10 +12,10 @@
using Ice::ByteSeq;
-void ::IceInternal::incRef(::IceSecurity::SecureUdp::MessageAuthenticator* p) { p->__incRef(); }
-void ::IceInternal::decRef(::IceSecurity::SecureUdp::MessageAuthenticator* p) { p->__decRef(); }
+void ::IceInternal::incRef(::SecureUdp::MessageAuthenticator* p) { p->__incRef(); }
+void ::IceInternal::decRef(::SecureUdp::MessageAuthenticator* p) { p->__decRef(); }
-IceSecurity::SecureUdp::MessageAuthenticator::MessageAuthenticator()
+SecureUdp::MessageAuthenticator::MessageAuthenticator()
{
// TODO: Should generate a random MAC key here
@@ -34,17 +34,17 @@ IceSecurity::SecureUdp::MessageAuthenticator::MessageAuthenticator()
_macKeyBytes.push_back(2);
}
-IceSecurity::SecureUdp::MessageAuthenticator::MessageAuthenticator(const ByteSeq& macKey)
+SecureUdp::MessageAuthenticator::MessageAuthenticator(const ByteSeq& macKey)
{
_macKeyBytes = macKey;
}
-IceSecurity::SecureUdp::MessageAuthenticator::~MessageAuthenticator()
+SecureUdp::MessageAuthenticator::~MessageAuthenticator()
{
}
ByteSeq
-IceSecurity::SecureUdp::MessageAuthenticator::computeMAC(const ByteSeq& message) const
+SecureUdp::MessageAuthenticator::computeMAC(const ByteSeq& message) const
{
// TODO: Should generate a REAL MAC here.
ByteSeq bytes;
@@ -67,14 +67,14 @@ IceSecurity::SecureUdp::MessageAuthenticator::computeMAC(const ByteSeq& message)
}
bool
-IceSecurity::SecureUdp::MessageAuthenticator::authenticate(const ByteSeq& message, const ByteSeq& macCode)
+SecureUdp::MessageAuthenticator::authenticate(const ByteSeq& message, const ByteSeq& macCode)
{
ByteSeq targetMAC = computeMAC(message);
return targetMAC == macCode;
}
const ByteSeq&
-IceSecurity::SecureUdp::MessageAuthenticator::getMACKey() const
+SecureUdp::MessageAuthenticator::getMACKey() const
{
return _macKeyBytes;
}