| 1025 | |
| 1026 | #ifdef AUTH_BLOCK_DEBUG |
| 1027 | void 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 |