mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03:03 +01:00
security fix
added LegacyHash parameter to firebird.conf - setting to true makes it possible to check for old (crypt) hashes in security.fdb
This commit is contained in:
parent
72b0264204
commit
687c93284e
@ -113,7 +113,8 @@ const ConfigImpl::ConfigEntry ConfigImpl::entries[] =
|
||||
#else
|
||||
{TYPE_BOOLEAN, "BugcheckAbort", (ConfigValue) false}, // whether to abort() engine when internal error is found
|
||||
#endif
|
||||
{TYPE_INTEGER, "TraceDSQL", (ConfigValue) 0} // bitmask
|
||||
{TYPE_INTEGER, "TraceDSQL", (ConfigValue) 0}, // bitmask
|
||||
{TYPE_BOOLEAN, "LegacyHash", (ConfigValue) false} // let use old passwd hash verification
|
||||
};
|
||||
|
||||
/******************************************************************************
|
||||
@ -483,3 +484,7 @@ int Config::getTraceDSQL()
|
||||
return (int) sysConfig.values[KEY_TRACE_DSQL];
|
||||
}
|
||||
|
||||
bool Config::getLegacyHash()
|
||||
{
|
||||
return (bool) sysConfig.values[KEY_LEGACY_HASH];
|
||||
}
|
||||
|
@ -105,7 +105,8 @@ class Config
|
||||
KEY_UDF_ACCESS, // 39
|
||||
KEY_TEMP_DIRECTORIES, // 40
|
||||
KEY_BUGCHECK_ABORT, // 41
|
||||
KEY_TRACE_DSQL // 42
|
||||
KEY_TRACE_DSQL, // 42
|
||||
KEY_LEGACY_HASH // 43
|
||||
};
|
||||
|
||||
public:
|
||||
@ -324,6 +325,11 @@ public:
|
||||
Abort on BUGCHECK and structured exceptions
|
||||
*/
|
||||
static bool getBugcheckAbort();
|
||||
|
||||
/*
|
||||
Let use of des hash to verify passwords
|
||||
*/
|
||||
static bool getLegacyHash();
|
||||
};
|
||||
|
||||
namespace Firebird {
|
||||
|
Loading…
Reference in New Issue
Block a user