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

Method getCurrentState

src/jrd/CryptoManager.cpp:1398–1411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

putDatabaseMethod · 0.80
INF_database_infoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected