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
26
26
{
27
27
class FirebirdNetworkStream : Stream , ITracksIOFailure
28
28
{
29
+ public const string CompressionName = "zlib" ;
30
+ public const string EncryptionName = "Arc4" ;
31
+
29
32
const int PreferredBufferSize = 32 * 1024 ;
30
33
const int CompressionBufferSize = 1 * 1024 * 1024 ;
31
34
Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ public void Identify(string database)
202
202
if ( _wireCrypt != WireCryptOption . Disabled )
203
203
{
204
204
Xdr . Write ( IscCodes . op_crypt ) ;
205
- Xdr . Write ( "ARC4" ) ;
206
- Xdr . Write ( "symmetric" ) ;
205
+ Xdr . Write ( FirebirdNetworkStream . EncryptionName ) ;
206
+ Xdr . Write ( SrpClient . SessionKeyName ) ;
207
207
Xdr . Flush ( ) ;
208
208
209
209
var encryptor = CreateCipher ( srp . SessionKey ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ namespace FirebirdSql.Data.Client.Managed
31
31
internal sealed class SrpClient
32
32
{
33
33
public const string PluginName = "Srp" ;
34
+ public const string SessionKeyName = "Symmetric" ;
34
35
35
36
private const int SRP_KEY_SIZE = 128 ;
36
37
private const int SRP_SALT_SIZE = 32 ;
You can’t perform that action at this time.
0 commit comments