aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/odhtdb/Database.hpp2
-rw-r--r--include/odhtdb/Group.hpp2
-rw-r--r--include/odhtdb/Signature.hpp4
3 files changed, 5 insertions, 3 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp
index 18ae5a1..e34fd9d 100644
--- a/include/odhtdb/Database.hpp
+++ b/include/odhtdb/Database.hpp
@@ -163,7 +163,7 @@ namespace odhtdb
// Throws PermissionDeniedException if user @userToPerformActionWith is not allowed to add data to node
void addData(const DatabaseNode &nodeInfo, const LocalUser *userToPerformActionWith, DataView dataToAdd);
// Throws PermissionDeniedException if user @userToPerformActionWith is not allowed to add user @userToAdd to group @groupToAddUserTo
- void addUser(const DatabaseNode &nodeInfo, LocalUser *userToPerformActionWith, const std::string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo);
+ void addUser(const DatabaseNode &nodeInfo, const LocalUser *userToPerformActionWith, const std::string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo);
void commit();
void setOnCreateNodeCallback(std::function<void(const DatabaseCreateNodeRequest&)> callbackFunc);
diff --git a/include/odhtdb/Group.hpp b/include/odhtdb/Group.hpp
index cd28923..99307e1 100644
--- a/include/odhtdb/Group.hpp
+++ b/include/odhtdb/Group.hpp
@@ -3,6 +3,7 @@
#include "types.hpp"
#include "DataView.hpp"
#include "Permission.hpp"
+#include "utils.hpp"
#include <string>
#include <vector>
#include <stdexcept>
@@ -25,6 +26,7 @@ namespace odhtdb
class Group
{
+ DISABLE_COPY(Group)
friend class User;
public:
Group(const std::string &name, uint8_t id[GROUP_ID_LENGTH], const Permission &permission);
diff --git a/include/odhtdb/Signature.hpp b/include/odhtdb/Signature.hpp
index 270b099..dac856b 100644
--- a/include/odhtdb/Signature.hpp
+++ b/include/odhtdb/Signature.hpp
@@ -53,7 +53,7 @@ namespace odhtdb
{
friend class KeyPair;
public:
- static PublicKey ZERO;
+ const static PublicKey ZERO;
// Throws InvalidSignatureKeySize if size is not PUBLIC_KEY_NUM_BYTES
PublicKey(const char *data, size_t size);
@@ -93,7 +93,7 @@ namespace odhtdb
{
friend class KeyPair;
public:
- static PrivateKey ZERO;
+ const static PrivateKey ZERO;
// Throws InvalidSignatureKeySize if size is not PRIVATE_KEY_NUM_BYTES
PrivateKey(const char *data, size_t size);