| 1396 | } |
| 1397 | |
| 1398 | UCHAR CryptoManager::getCurrentState(thread_db* tdbb) const |
| 1399 | { |
| 1400 | bool p = process; |
| 1401 | bool c = crypt; |
| 1402 | if (!currentPage) |
| 1403 | { |
| 1404 | CchHdr hdr(tdbb, LCK_read); |
| 1405 | |
| 1406 | p = hdr->hdr_flags & Ods::hdr_crypt_process; |
| 1407 | c = hdr->hdr_flags & Ods::hdr_encrypted; |
| 1408 | } |
| 1409 | |
| 1410 | return (c ? fb_info_crypt_encrypted : 0) | (p ? fb_info_crypt_process : 0); |
| 1411 | } |
| 1412 | |
| 1413 | const char* CryptoManager::getKeyName() const |
| 1414 | { |
no outgoing calls
no test coverage detected