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 /* ACE_LACKS_PRAGMA_ONCE */
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 /// @brief This URI abstraction is currently naive and only separates the URI scheme
00021 /// on the LHS from the "everything-else" of the URI on the RHS. As such this may only handle
00022 /// the URI_FILE and URI_DATA cases properly. Further investigate into URI_PKCS11
00023 /// should be completed.
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1