OpenDDS  Snapshot(2023/04/28-20:55)
CommonUtilities.h
Go to the documentation of this file.
1 #ifndef OPENDDS_DCPS_SECURITY_COMMONUTILITIES_H
2 #define OPENDDS_DCPS_SECURITY_COMMONUTILITIES_H
3 
4 #include "CryptoBuiltInC.h"
6 
8 #include "dds/DdsSecurityCoreC.h"
10 
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 #pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 
15 class DDS_TEST;
16 
18 
19 namespace OpenDDS {
20 namespace Security {
21 namespace CommonUtilities {
22 
23 
24 /// @brief This URI abstraction is currently naive and only separates the URI scheme
25 /// on the LHS from the "everything-else" of the URI on the RHS. As such this may only handle
26 /// the URI_FILE and URI_DATA cases properly. Further investigate into URI_PKCS11
27 /// should be completed.
28 struct URI {
29  enum Scheme
30  {
35  };
36 
37  explicit URI(const std::string& src);
38 
40  std::string everything_else;
41 };
42 
43 int increment_handle(int& next);
44 
47  int code,
48  int minor_code,
49  const char* message);
50 
53  int code,
54  int minor_code,
55  const char* message,
56  const unsigned char (&a1)[4],
57  const unsigned char (&a2)[4]);
58 
59 const char* ctk_to_dds_string(const CryptoTransformKind& keyKind);
64 
65 }
66 }
67 }
68 
70 
71 #endif
This URI abstraction is currently naive and only separates the URI scheme on the LHS from the "everyt...
sequence< octet, 32 > KeyOctetSeq
OPENDDS_STRING to_dds_string(const KeyOctetSeq &keyData)
octet CryptoTransformKeyId[4]
Christopher Diggins *renamed files *fixing compilation errors *adding Visual C project file *removed make Max Lybbert *removed references to missing and unused as reported by Andy Elvey and Dan Kosecki *resynced with Christopher Diggins s branch as it exists in tree building code is back Christopher Diggins *resynced codebase with Chris s branch *removed tree building code
Definition: CHANGELOG.txt:8
const char * ctk_to_dds_string(const CryptoTransformKind &keyKind)
#define OPENDDS_STRING
octet CryptoTransformKind[4]
#define OpenDDS_Security_Export
OPENDDS_STRING ctki_to_dds_string(const CryptoTransformKeyId &keyId)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
bool set_security_error(DDS::Security::SecurityException &ex, int code, int minor_code, const char *message)
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28