| 1426 | } |
| 1427 | |
| 1428 | void Mapping::setSecurityDbAlias(const char* a, const char* mainExpandedName) |
| 1429 | { |
| 1430 | fb_assert(!securityAlias); |
| 1431 | fb_assert(authBlock); |
| 1432 | |
| 1433 | securityAlias = a; |
| 1434 | expandDatabaseName(securityAlias, secExpanded, nullptr); |
| 1435 | setInternalFlags(); |
| 1436 | |
| 1437 | if (mainExpandedName && secExpanded == mainExpandedName) |
| 1438 | return; |
| 1439 | |
| 1440 | Mapping::DbHandle secHandle; |
| 1441 | if ((!(internalFlags & FLAG_SEC)) && |
| 1442 | ensureCachePresence(secCache, securityAlias, secExpanded.c_str(), secHandle, cryptCallback, dbCache)) |
| 1443 | { |
| 1444 | internalFlags |= FLAG_DOWN_SEC; |
| 1445 | } |
| 1446 | } |
| 1447 | |
| 1448 | void Mapping::setErrorMessagesContextName(const char* context) |
| 1449 | { |
no test coverage detected