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

Method tryNewKey

src/remote/remote.cpp:1349–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347}
1348
1349bool rem_port::tryNewKey(InternalCryptKey* cryptKey)
1350{
1351 for (unsigned t = 0; t < port_known_server_keys.getCount(); ++t)
1352 {
1353 if (tryKeyType(port_known_server_keys[t], cryptKey))
1354 {
1355 return true;
1356 }
1357 }
1358
1359 port_crypt_keys.push(cryptKey);
1360 return false;
1361}
1362
1363bool rem_port::tryKeyType(const KnownServerKey& srvKey, InternalCryptKey* cryptKey)
1364{

Callers 1

tryNewKeysMethod · 0.80

Calls 2

getCountMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected