diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-01-21 18:25:23 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-01-21 18:25:23 +0000 |
commit | af55fcdcfb0857a3516f30fb61176ffe9bc31110 (patch) | |
tree | d92b8bd808ab3f6420e2733295024d1fbf6a1d7b /cpp/src/Ice/MessageAuthenticator.h | |
parent | adding server; removing wstring (diff) | |
download | ice-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/MessageAuthenticator.h')
-rw-r--r-- | cpp/src/Ice/MessageAuthenticator.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/cpp/src/Ice/MessageAuthenticator.h b/cpp/src/Ice/MessageAuthenticator.h new file mode 100644 index 00000000000..c6190da5ce2 --- /dev/null +++ b/cpp/src/Ice/MessageAuthenticator.h @@ -0,0 +1,51 @@ +// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef ICE_MESSAGE_AUTHENTICATOR_H
+#define ICE_MESSAGE_AUTHENTICATOR_H
+
+#include <IceUtil/Shared.h>
+#include <Ice/Stream.h>
+#include <Ice/MessageAuthenticatorF.h>
+
+namespace IceSecurity
+{
+
+namespace SecureUdp
+{
+
+using IceUtil::Shared;
+using Ice::ByteSeq;
+
+class MessageAuthenticator : public Shared
+{
+
+public:
+ MessageAuthenticator();
+ MessageAuthenticator(const ByteSeq&);
+ virtual ~MessageAuthenticator();
+
+ virtual ByteSeq computeMAC(const ByteSeq&) const;
+
+ virtual bool authenticate(const ByteSeq&, const ByteSeq&);
+
+ virtual const ByteSeq& getMACKey() const;
+
+protected:
+ ByteSeq _macKeyBytes;
+
+};
+
+}
+
+}
+
+#endif
+
|