diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-28 20:49:58 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-28 20:49:58 +0700 |
commit | dc5029c8650432ae04df78d2ead06a8349176b74 (patch) | |
tree | 306f232f9cf53762ccb427225dee958313b884fd /crypto/src/tls/TlsSrpUtilities.cs | |
parent | Generics migration in Ocsp, OpenPgp (diff) | |
download | BouncyCastle.NET-ed25519-dc5029c8650432ae04df78d2ead06a8349176b74.tar.xz |
Generics migration in Tls
Diffstat (limited to 'crypto/src/tls/TlsSrpUtilities.cs')
-rw-r--r-- | crypto/src/tls/TlsSrpUtilities.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/tls/TlsSrpUtilities.cs b/crypto/src/tls/TlsSrpUtilities.cs index c36a667ac..6b01ed512 100644 --- a/crypto/src/tls/TlsSrpUtilities.cs +++ b/crypto/src/tls/TlsSrpUtilities.cs @@ -1,5 +1,5 @@ using System; -using System.Collections; +using System.Collections.Generic; using System.IO; using Org.BouncyCastle.Math; @@ -10,13 +10,13 @@ namespace Org.BouncyCastle.Tls public abstract class TlsSrpUtilities { /// <exception cref="IOException"/> - public static void AddSrpExtension(IDictionary extensions, byte[] identity) + public static void AddSrpExtension(IDictionary<int, byte[]> extensions, byte[] identity) { extensions[ExtensionType.srp] = CreateSrpExtension(identity); } /// <exception cref="IOException"/> - public static byte[] GetSrpExtension(IDictionary extensions) + public static byte[] GetSrpExtension(IDictionary<int, byte[]> extensions) { byte[] extensionData = TlsUtilities.GetExtensionData(extensions, ExtensionType.srp); return extensionData == null ? null : ReadSrpExtension(extensionData); |