From 96f1e9eb88ba1c90ac0ed288d814c517fcadf2e6 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 8 Jul 2020 02:26:28 +0200 Subject: [PATCH] Backed out changeset 0efc85ba691e that was the wrong file to commit --- src/gen_cpp_Engine.ysl2 | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/gen_cpp_Engine.ysl2 b/src/gen_cpp_Engine.ysl2 index abfa6ac..669504b 100644 --- a/src/gen_cpp_Engine.ysl2 +++ b/src/gen_cpp_Engine.ysl2 @@ -68,31 +68,8 @@ tstylesheet { choose { when "@cached = 'true'" { || - pEpLog("cached passphrase mode"); - bool retryAfterCallback = false; - int maxRetries = 3; - int retryCount = 0; - PEP_STATUS status; - do { - // the actual target function - status = passphrase_cache.api(::«@name»,session()`apply "parm", mode=call`); - - if(status == PEP_PASSPHRASE_REQUIRED || PEP_WRONG_PASSPHRASE ) { - pEpLog("PassReq OR Wrong"); - // call the app - const char * _passphrase = "passphrase_alice"; - PEP_STATUS status = ::config_passphrase(session(),passphrase_cache.add(_passphrase)); - retryCount++; - if(retryCount > maxRetries) { - retryAfterCallback = false; - } else { - retryAfterCallback = true; - } - } else { - retryAfterCallback = false; - } - } while (retryAfterCallback); - + pEpLog("cached passphrase"); + PEP_STATUS status = passphrase_cache.api(::«@name»,session()`apply "parm", mode=call`); || } otherwise { ||