diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-05-01 11:59:15 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-05-01 11:59:19 +0200 |
commit | 3b7289b006c4c78ecbdf21ebf4c68441319d3dbd (patch) | |
tree | c2f1f321af479e7ca3fad69dc6afc3335a175eb6 /include | |
parent | 670e3eed2703dcee1dee0508e45d8454cae78544 (diff) |
Remove unnecessary dependency 'fmt'
Diffstat (limited to 'include')
-rw-r--r-- | include/odhtdb/Database.hpp | 2 | ||||
-rw-r--r-- | include/odhtdb/Group.hpp | 2 | ||||
-rw-r--r-- | include/odhtdb/Signature.hpp | 4 |
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); |