From 21a7e774bba4832848687dbd8d2e0a1df33650ce Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 15 Apr 2015 19:14:12 -0700 Subject: Wire API auth token stuff. --- one.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'one.cpp') diff --git a/one.cpp b/one.cpp index 68e1fb93..c5a3e99f 100644 --- a/one.cpp +++ b/one.cpp @@ -68,7 +68,6 @@ #include "controller/SqliteNetworkController.hpp" #endif -#define ZT1_AUTHTOKEN_SECRET_PATH "authtoken.secret" #define ZT1_PID_PATH "zerotier-one.pid" #define ZT1_CONTROLLER_DB_PATH "controller.db" @@ -643,23 +642,6 @@ int main(int argc,char **argv) } } - std::string authToken; - { - std::string authTokenPath(homeDir + ZT_PATH_SEPARATOR_S + ZT1_AUTHTOKEN_SECRET_PATH); - if (!OSUtils::readFile(authTokenPath.c_str(),authToken)) { - unsigned char foo[24]; - Utils::getSecureRandom(foo,sizeof(foo)); - authToken = ""; - for(unsigned int i=0;i