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

Function dumpAuthBlock

src/common/classes/ClumpletReader.cpp:1027–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025
1026#ifdef AUTH_BLOCK_DEBUG
1027void dumpAuthBlock(const char* text, ClumpletReader* pb, unsigned char param)
1028{
1029 fprintf(stderr, "AuthBlock in %s:", text);
1030 if (pb->find(param))
1031 {
1032 Firebird::AuthReader::AuthBlock tmp;
1033 tmp.assign(pb->getBytes(), pb->getClumpLength());
1034 Firebird::AuthReader rdr(tmp);
1035 string name, plugin;
1036 PathName secureDb;
1037 bool x = false;
1038 while (rdr.getInfo(&name, &plugin, &secureDb))
1039 {
1040 fprintf(stderr, " %s::%s::%s", name.c_str(), plugin.c_str(), secureDb.c_str());
1041 x = true;
1042 rdr.moveNext();
1043 }
1044 fprintf(stderr, "%s\n", x ? "" : " <empty>");
1045 }
1046 else
1047 {
1048 fprintf(stderr, " <missing>\n");
1049 }
1050}
1051#endif
1052
1053} // namespace

Callers

nothing calls this directly

Calls 7

getClumpLengthMethod · 0.80
findMethod · 0.45
assignMethod · 0.45
getBytesMethod · 0.45
getInfoMethod · 0.45
c_strMethod · 0.45
moveNextMethod · 0.45

Tested by

no test coverage detected