CommonUtilities.h
Go to the documentation of this file.00001 #ifndef DDS_SECURITY_UTILS_H
00002 #define DDS_SECURITY_UTILS_H
00003
00004 #include "dds/DdsSecurityCoreC.h"
00005 #include "dds/Versioned_Namespace.h"
00006
00007 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00008 #pragma once
00009 #endif
00010
00011 class DDS_TEST;
00012
00013 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00014
00015 namespace OpenDDS {
00016 namespace Security {
00017 namespace CommonUtilities {
00018
00019
00020
00021
00022
00023
00024 struct URI {
00025 enum Scheme
00026 {
00027 URI_UNKNOWN,
00028 URI_FILE,
00029 URI_DATA,
00030 URI_PKCS11,
00031 };
00032
00033 explicit URI(const std::string& src);
00034
00035 Scheme scheme;
00036 std::string everything_else;
00037 };
00038
00039 int increment_handle(int& next);
00040
00041 void set_security_error(DDS::Security::SecurityException& ex,
00042 int code,
00043 int minor_code,
00044 const char* message);
00045
00046 void set_security_error(DDS::Security::SecurityException& ex,
00047 int code,
00048 int minor_code,
00049 const char* message,
00050 const unsigned char (&a1)[4],
00051 const unsigned char (&a2)[4]);
00052
00053 }
00054 }
00055 }
00056
00057 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00058
00059 #endif