Add AppleScript to get authentication token and place in home directory, used for OSX GUI app to authenticate a user as authorized to admin ZT1.
This commit is contained in:
parent
77bab13546
commit
0adc91d6cb
9 changed files with 84 additions and 0 deletions
|
@ -2,7 +2,30 @@
|
|||
#include "aboutwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QMutex>
|
||||
|
||||
static std::map< unsigned long,std::vector<std::string> > ztReplies;
|
||||
static QMutex ztReplies_m;
|
||||
static void handleZTMessage(void *arg,unsigned long id,const char *line)
|
||||
{
|
||||
ztReplies_m.lock();
|
||||
if (*line) {
|
||||
ztReplies[id].push_back(std::string(line));
|
||||
ztReplies_m.unlock();
|
||||
} else {
|
||||
std::vector<std::string> resp(ztReplies[id]);
|
||||
ztReplies.erase(id);
|
||||
ztReplies_m.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
// Globally visible
|
||||
ZeroTier::Node::LocalClient *zeroTierClient = (ZeroTier::Node::LocalClient *)0;
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue