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

Function authenticateStep0

src/remote/client/interface.cpp:7816–7841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7814
7815
7816static void authenticateStep0(ClntAuthBlock& cBlock)
7817{
7818 LocalStatus ls;
7819 CheckStatusWrapper s(&ls);
7820 for (; cBlock.plugins.hasData(); cBlock.plugins.next())
7821 {
7822 HANDSHAKE_DEBUG(fprintf(stderr, "Cli: authenticateStep0(%s)\n", cBlock.plugins.name()));
7823 switch(cBlock.plugins.plugin()->authenticate(&s, &cBlock))
7824 {
7825 case IAuth::AUTH_SUCCESS:
7826 case IAuth::AUTH_MORE_DATA:
7827 return;
7828 case IAuth::AUTH_FAILED:
7829 if (s.getState() & IStatus::STATE_ERRORS)
7830 {
7831 iscLogStatus("Authentication, client plugin:", &s);
7832 }
7833 (Arg::Gds(isc_login_error)
7834#ifdef DEV_BUILD
7835 << Arg::StatusVector(&s)
7836#endif
7837 ).raise();
7838 break; // compiler silencer
7839 }
7840 }
7841}
7842
7843
7844static void secureAuthentication(ClntAuthBlock& cBlock, rem_port* port)

Callers 1

analyzeFunction · 0.85

Calls 9

iscLogStatusFunction · 0.85
pluginMethod · 0.80
StatusVectorClass · 0.50
hasDataMethod · 0.45
nextMethod · 0.45
nameMethod · 0.45
authenticateMethod · 0.45
getStateMethod · 0.45
raiseMethod · 0.45

Tested by

no test coverage detected