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

Function REMOTE_legacy_auth

src/remote/remote.cpp:1047–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047LegacyPlugin REMOTE_legacy_auth(const char* nm, int p)
1048{
1049 const char* legacyTrusted = "WIN_SSPI";
1050 if (fb_utils::stricmp(legacyTrusted, nm) == 0 &&
1051 (p == PROTOCOL_VERSION11 || p == PROTOCOL_VERSION12))
1052 {
1053 return PLUGIN_TRUSTED;
1054 }
1055
1056 const char* legacyAuth = "LEGACY_AUTH";
1057 if (fb_utils::stricmp(legacyAuth, nm) == 0 && p < PROTOCOL_VERSION13)
1058 {
1059 return PLUGIN_LEGACY;
1060 }
1061
1062 return PLUGIN_NEW;
1063}
1064
1065PathName ClntAuthBlock::getPluginName()
1066{

Callers 3

useLegacyAuthFunction · 0.85
authenticateMethod · 0.85

Calls 1

stricmpFunction · 0.85

Tested by

no test coverage detected