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

Method getWireCrypt

src/common/config/config.cpp:707–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707int Config::getWireCrypt(WireCryptMode wcMode) const
708{
709 DECLARE_PER_DB_KEY(KEY_WIRE_CRYPT);
710
711 bool present;
712 const char* wc = getStr(key, &present);
713 if (present && wc)
714 {
715 NoCaseString wireCrypt(wc);
716 if (wireCrypt == "DISABLED")
717 return WIRE_CRYPT_DISABLED;
718 if (wireCrypt == "ENABLED")
719 return WIRE_CRYPT_ENABLED;
720 if (wireCrypt == "REQUIRED")
721 return WIRE_CRYPT_REQUIRED;
722
723 // wrong user value, fail to default
724 // should not happens, see checkValues()
725 fb_assert(false);
726 }
727
728 return wcMode == WC_CLIENT ? WIRE_CRYPT_ENABLED : WIRE_CRYPT_REQUIRED;
729}
730
731bool Config::getUseFileSystemCache(bool* pPresent) const
732{

Callers 4

tryKeyTypeMethod · 0.80
wireEncryptionFunction · 0.80
start_cryptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected