Paul Zinselmeyer
ba8e969470
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m2s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m3s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 1m0s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 30s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 10s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 8s
53 lines
978 B
C++
53 lines
978 B
C++
#ifndef VERIFICATIONMANAGER_H
|
|
#define VERIFICATIONMANAGER_H
|
|
|
|
#include <string>
|
|
#include <stdio.h>
|
|
#include <limits.h>
|
|
#include <unistd.h>
|
|
|
|
#include "ServiceProvider.h"
|
|
#include "NetworkManagerClient.h"
|
|
#include "LogBase.h"
|
|
#include "Messages.pb.h"
|
|
#include "WebService.h"
|
|
|
|
using namespace std;
|
|
|
|
class VerificationManager {
|
|
|
|
public:
|
|
static VerificationManager* getInstance();
|
|
virtual ~VerificationManager();
|
|
int init();
|
|
vector<string> incomingHandler(string v, int type);
|
|
void start();
|
|
|
|
private:
|
|
VerificationManager();
|
|
string prepareVerificationRequest();
|
|
string handleMSG0(Messages::MessageMsg0 m);
|
|
string handleMSG1(Messages::MessageMSG1 msg);
|
|
string handleMSG3(Messages::MessageMSG3 msg);
|
|
string createInitMsg(int type, string msg);
|
|
string handleAppAttOk();
|
|
|
|
private:
|
|
static VerificationManager* instance;
|
|
NetworkManagerClient *nm = NULL;
|
|
ServiceProvider *sp = NULL;
|
|
WebService *ws = NULL;
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|