From e22fae2397f69302820b7a1af2fe2291bb6865e0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 16 Sep 2014 15:47:00 -0700 Subject: it compiles again! --- control/NodeControlService.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'control/NodeControlService.hpp') diff --git a/control/NodeControlService.hpp b/control/NodeControlService.hpp index 453e943b..737878e0 100644 --- a/control/NodeControlService.hpp +++ b/control/NodeControlService.hpp @@ -69,6 +69,15 @@ public: void threadMain() throw(); + /** + * Load (or generate) the authentication token + * + * @param path Full path to authtoken.secret + * @param generateIfNotFound If true, generate and save if not found or readable + * @return Authentication token or empty string on failure + */ + static std::string readOrCreateAuthtoken(const char *path,bool generateIfNotFound); + private: static void _CBcommandHandler(void *arg,IpcConnection *ipcc,IpcConnection::EventType event,const char *commandLine); void _doCommand(IpcConnection *ipcc,const char *commandLine); -- cgit v1.2.3