| 441 | } |
| 442 | |
| 443 | void CryptoManager::setDbInfo(IDbCryptPlugin* cp) |
| 444 | { |
| 445 | FbLocalStatus status; |
| 446 | cp->setInfo(&status, dbInfo); |
| 447 | if (status->getState() & IStatus::STATE_ERRORS) |
| 448 | { |
| 449 | const ISC_STATUS* v = status->getErrors(); |
| 450 | if (v[0] == isc_arg_gds && v[1] != isc_arg_end && v[1] != isc_interface_version_too_old) |
| 451 | status_exception::raise(&status); |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | void CryptoManager::loadPlugin(thread_db* tdbb, const char* plugName) |
| 456 | { |