summaryrefslogtreecommitdiff
path: root/node/Node.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-03 14:03:29 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-03 14:03:29 -0800
commit22b52858e04c25709081251300fed6cdc42810be (patch)
tree1e821cee94f151c3d4c74116dee388611b933ade /node/Node.hpp
parentbaea75f2dfa21ca76a9b6eb2be83e0681f0024b0 (diff)
downloadinfinitytier-22b52858e04c25709081251300fed6cdc42810be.tar.gz
infinitytier-22b52858e04c25709081251300fed6cdc42810be.zip
Fix -h in zerotier-cli and move code to find auth token into LocalClient, also move auth token for mac into Mac-standard Library/Application Support location.
Diffstat (limited to 'node/Node.hpp')
-rw-r--r--node/Node.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/node/Node.hpp b/node/Node.hpp
index 2736713f..a6410992 100644
--- a/node/Node.hpp
+++ b/node/Node.hpp
@@ -84,6 +84,16 @@ public:
static std::vector<std::string> splitLine(const char *line);
static inline std::vector<std::string> splitLine(const std::string &line) { return splitLine(line.c_str()); }
+ /**
+ * @return Default path for user-local authorization token for the current user or empty string if cannot be determined
+ */
+ static std::string authTokenDefaultUserPath();
+
+ /**
+ * @return Default system path for auth token on this platform
+ */
+ static std::string authTokenDefaultSystemPath();
+
private:
// LocalClient is not copyable
LocalClient(const LocalClient&);