Patches by Alexey Pavlov.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60408 65644016-39b1-43b1-bf79-96bc8fe82c15
Added forgotten security check - thanks to Adriano

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60409 65644016-39b1-43b1-bf79-96bc8fe82c15
Fix compilation errors

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60410 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed Windows build

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60411 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed compilation errors

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60415 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-4646: Attach failure when using LegacyAuth on server and default configuration on client

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@60416 65644016-39b1-43b1-bf79-96bc8fe82c15