MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ClntAuthBlock

Method ClntAuthBlock

src/remote/client/interface.cpp:10170–10196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10168
10169
10170ClntAuthBlock::ClntAuthBlock(const PathName* fileName, ClumpletReader* dpb,
10171 const ParametersSet* tags)
10172 : pluginList(getPool()), serverPluginList(getPool()),
10173 cliUserName(getPool()), cliPassword(getPool()), cliOrigUserName(getPool()),
10174 dataForPlugin(getPool()), dataFromPlugin(getPool()),
10175 cryptKeys(getPool()), dpbConfig(getPool()), dpbPlugins(getPool()),
10176 createdInterface(nullptr),
10177 plugins(IPluginManager::TYPE_AUTH_CLIENT), authComplete(false), firstTime(true)
10178{
10179 if (dpb && tags)
10180 {
10181 if (dpb->find(tags->config_text))
10182 dpb->getString(dpbConfig);
10183
10184 if (dpb->find(tags->plugin_list))
10185 dpb->getPath(dpbPlugins);
10186
10187 if (dpb->find(tags->auth_block))
10188 {
10189 AuthReader::AuthBlock plain;
10190 plain.add(dpb->getBytes(), dpb->getClumpLength());
10191 remAuthBlock.reset(FB_NEW RmtAuthBlock(plain));
10192 }
10193 }
10194 clntConfig = REMOTE_get_config(fileName, &dpbConfig);
10195 resetClnt();
10196}
10197
10198void ClntAuthBlock::resetDataFromPlugin()
10199{

Callers

nothing calls this directly

Calls 9

RmtAuthBlockClass · 0.85
REMOTE_get_configFunction · 0.85
getPathMethod · 0.80
getClumpLengthMethod · 0.80
findMethod · 0.45
getStringMethod · 0.45
addMethod · 0.45
getBytesMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected