Skip to content

Commit 94128e0

Browse files
committed
Support for fb_info_wire_crypt and fb_info_crypt_plugin. (#935, #934)
1 parent 76b162f commit 94128e0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Common/IscHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ public static List<object> ParseDatabaseInfo(byte[] buffer)
8080
info.Add(Encoding2.Default.GetString(buffer, pos + 1, buffer[pos]));
8181
break;
8282

83+
case IscCodes.fb_info_wire_crypt:
84+
case IscCodes.fb_info_crypt_plugin:
85+
info.Add(Encoding2.Default.GetString(buffer, pos, length));
86+
break;
87+
8388
case IscCodes.isc_info_base_level:
8489
info.Add(string.Format(CultureInfo.CurrentCulture, "{0}.{1}", buffer[pos], buffer[pos + 1]));
8590
break;

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbDatabaseInfo.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,24 @@ public Task<List<string>> GetActiveUsersAsync(CancellationToken cancellationToke
368368
return GetListAsync<string>(IscCodes.isc_info_user_names, cancellationToken);
369369
}
370370

371+
public string GetWireCrypt()
372+
{
373+
return GetValue<string>(IscCodes.fb_info_wire_crypt);
374+
}
375+
public Task<string> GetWireCryptAsync(CancellationToken cancellationToken = default)
376+
{
377+
return GetValueAsync<string>(IscCodes.fb_info_wire_crypt, cancellationToken);
378+
}
379+
380+
public string GetCryptPlugin()
381+
{
382+
return GetValue<string>(IscCodes.fb_info_crypt_plugin);
383+
}
384+
public Task<string> GetCryptPluginAsync(CancellationToken cancellationToken = default)
385+
{
386+
return GetValueAsync<string>(IscCodes.fb_info_crypt_plugin, cancellationToken);
387+
}
388+
371389
#endregion
372390

373391
#region Constructors

0 commit comments

Comments
 (0)