2014-01-06 19:19:17 +00:00
|
|
|
|
|
|
|
#include "cliever-md.h"
|
2014-01-07 17:59:27 +00:00
|
|
|
|
|
|
|
|
2014-01-08 05:00:04 +00:00
|
|
|
bool ausRegEPPTK::didInit(const std::string propPath) {
|
2014-01-07 17:59:27 +00:00
|
|
|
|
2014-01-10 20:05:42 +00:00
|
|
|
bool did=false;
|
2014-01-07 17:59:27 +00:00
|
|
|
|
2014-01-10 20:05:42 +00:00
|
|
|
getPeerService:
|
2014-01-07 17:59:27 +00:00
|
|
|
|
2014-01-10 20:05:42 +00:00
|
|
|
switch(tkScenario) {
|
|
|
|
case 0:
|
|
|
|
try {
|
2014-01-08 05:00:04 +00:00
|
|
|
init( propPath );
|
2014-01-07 17:59:27 +00:00
|
|
|
did = true;
|
2014-01-10 20:05:42 +00:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
2014-01-07 17:59:27 +00:00
|
|
|
return did;
|
|
|
|
|
|
|
|
}
|