DRDE/AusRegCliever/server/mdAusReg.cpp

36 lines
789 B
C++

#include "cliever-md.h"
bool ausRegEPPTK::didInit(const std::string propPath) {
bool did=false;
getPeerService:
switch(tkScenario) {
case 0:
try {
init( propPath );
did = true;
}
catch(std::exception &e) {
theseLogs->logN(1,"Scenario Zero TK Exception: %s .",e.what());
}
if (!did) { if (tkScenario++ <= MAX_SCENARIO) goto getPeerService; }
break;
case 1: // Our first level of implementation, allow an insecure partially authenticated TLS Session.
try {
scenario( tkScenario );
did = true;
}
catch(std::exception &e) {
theseLogs->logN(1,"Scenario One TK Exception: %s .",e.what());
}
if (!did) { if (tkScenario++ <= MAX_SCENARIO) goto getPeerService; }
break;
}
return did;
}