summary refs log tree commit diff
path: root/crypto/src/crypto/tls/SrpTlsClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/tls/SrpTlsClient.cs')
-rw-r--r--crypto/src/crypto/tls/SrpTlsClient.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/crypto/tls/SrpTlsClient.cs b/crypto/src/crypto/tls/SrpTlsClient.cs

index f487e9b21..f9c8ccc74 100644 --- a/crypto/src/crypto/tls/SrpTlsClient.cs +++ b/crypto/src/crypto/tls/SrpTlsClient.cs
@@ -16,7 +16,7 @@ namespace Org.BouncyCastle.Crypto.Tls protected TlsClientContext context; protected byte selectedCompressionMethod; - protected CipherSuite selectedCipherSuite; + protected int selectedCipherSuite; public SrpTlsClient(byte[] identity, byte[] password) : this(new DefaultTlsCipherFactory(), identity, password) @@ -35,9 +35,9 @@ namespace Org.BouncyCastle.Crypto.Tls this.context = context; } - public virtual CipherSuite[] GetCipherSuites() + public virtual int[] GetCipherSuites() { - return new CipherSuite[] { + return new int[] { CipherSuite.TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA, CipherSuite.TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA, CipherSuite.TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA, @@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Crypto.Tls // Currently ignored } - public virtual void NotifySelectedCipherSuite(CipherSuite selectedCipherSuite) + public virtual void NotifySelectedCipherSuite(int selectedCipherSuite) { this.selectedCipherSuite = selectedCipherSuite; } @@ -180,7 +180,7 @@ namespace Org.BouncyCastle.Crypto.Tls } } - protected virtual TlsKeyExchange CreateSrpKeyExchange(KeyExchangeAlgorithm keyExchange) + protected virtual TlsKeyExchange CreateSrpKeyExchange(int keyExchange) { return new TlsSrpKeyExchange(context, keyExchange, identity, password); }