File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ namespace FirebirdSql.Data.Client.Managed
2626{
2727 class FirebirdNetworkStream : Stream , ITracksIOFailure
2828 {
29+ public const string CompressionName = "zlib" ;
30+ public const string EncryptionName = "Arc4" ;
31+
2932 const int PreferredBufferSize = 32 * 1024 ;
3033 const int CompressionBufferSize = 1 * 1024 * 1024 ;
3134
Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ public void Identify(string database)
202202 if ( _wireCrypt != WireCryptOption . Disabled )
203203 {
204204 Xdr . Write ( IscCodes . op_crypt ) ;
205- Xdr . Write ( "ARC4" ) ;
206- Xdr . Write ( "symmetric" ) ;
205+ Xdr . Write ( FirebirdNetworkStream . EncryptionName ) ;
206+ Xdr . Write ( SrpClient . SessionKeyName ) ;
207207 Xdr . Flush ( ) ;
208208
209209 var encryptor = CreateCipher ( srp . SessionKey ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ namespace FirebirdSql.Data.Client.Managed
3131 internal sealed class SrpClient
3232 {
3333 public const string PluginName = "Srp" ;
34+ public const string SessionKeyName = "Symmetric" ;
3435
3536 private const int SRP_KEY_SIZE = 128 ;
3637 private const int SRP_SALT_SIZE = 32 ;
You can’t perform that action at this time.
0 commit comments