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

Function MVOL_get_crypt

src/burp/mvol.cpp:224–248  ·  view source on GitHub ↗

____________________________________________________________

Source from the content-addressed store, hash-verified

222//
223//
224Firebird::ICryptKeyCallback* MVOL_get_crypt(BurpGlobals* tdgbl)
225{
226 fb_assert(tdgbl->gbl_sw_keyholder);
227
228 if (!tdgbl->gbl_crypt)
229 {
230 // Get per-DB config
231 Firebird::PathName dummy;
232 Firebird::RefPtr<const Firebird::Config> config;
233 expandDatabaseName(tdgbl->gbl_database_file_name, dummy, &config);
234
235 mvol_get_holder(tdgbl, config);
236 }
237
238 BurpCrypt* g = tdgbl->gbl_crypt;
239 if (!g->crypt_callback)
240 {
241 FbLocalStatus status;
242
243 g->crypt_callback = g->holder_plugin->chainHandle(&status);
244 check(&status);
245 }
246
247 return g->crypt_callback;
248}
249
250//____________________________________________________________
251//

Callers 1

open_filesFunction · 0.85

Calls 4

expandDatabaseNameFunction · 0.85
mvol_get_holderFunction · 0.85
checkFunction · 0.50
chainHandleMethod · 0.45

Tested by

no test coverage detected