This commit is contained in:
parent
0384277007
commit
01cd5452c6
|
@ -8,7 +8,7 @@ class ausRegEPPTK {
|
|||
public: int tkScenario;
|
||||
// See the Toolkit Overview. At this level supposedly it can do everything.
|
||||
|
||||
ausRegEPPTK() { tkScenario = 0; }
|
||||
ausRegEPPTK() { tkScenario = 1; }
|
||||
bool didInit(const std::string propertiesFilePath);
|
||||
|
||||
|
||||
|
|
|
@ -6,30 +6,13 @@ 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());
|
||||
theseLogs->logN(2,"Scenario %d TK Exception: %s .",tkScenario,e.what());
|
||||
}
|
||||
if (!did) { if (tkScenario++ <= MAX_SCENARIO) goto getPeerService; }
|
||||
break;
|
||||
}
|
||||
return did;
|
||||
return did;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue