Skip to content

Commit 8f9d4ea

Browse files
committed
Remove this qualifier.
1 parent 45a2332 commit 8f9d4ea

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

Renci.SshClient/Renci.SshNet/Security/KeyExchangeDiffieHellmanGroupSha1.cs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ public abstract class KeyExchangeDiffieHellmanGroupSha1 : KeyExchangeDiffieHellm
2727
protected override byte[] CalculateHash()
2828
{
2929
var hashData = new _ExchangeHashData
30-
{
31-
ClientVersion = this.Session.ClientVersion,
32-
ServerVersion = this.Session.ServerVersion,
33-
ClientPayload = this._clientPayload,
34-
ServerPayload = this._serverPayload,
35-
HostKey = this._hostKey,
36-
ClientExchangeValue = this._clientExchangeValue,
37-
ServerExchangeValue = this._serverExchangeValue,
38-
SharedKey = this.SharedKey,
39-
}.GetBytes();
40-
41-
return this.Hash(hashData);
30+
{
31+
ClientVersion = Session.ClientVersion,
32+
ServerVersion = Session.ServerVersion,
33+
ClientPayload = _clientPayload,
34+
ServerPayload = _serverPayload,
35+
HostKey = _hostKey,
36+
ClientExchangeValue = _clientExchangeValue,
37+
ServerExchangeValue = _serverExchangeValue,
38+
SharedKey = SharedKey,
39+
}.GetBytes();
40+
41+
return Hash(hashData);
4242
}
4343

4444
/// <summary>
@@ -50,17 +50,17 @@ public override void Start(Session session, KeyExchangeInitMessage message)
5050
{
5151
base.Start(session, message);
5252

53-
this.Session.RegisterMessage("SSH_MSG_KEXDH_REPLY");
53+
Session.RegisterMessage("SSH_MSG_KEXDH_REPLY");
5454

55-
this.Session.MessageReceived += Session_MessageReceived;
55+
Session.MessageReceived += Session_MessageReceived;
5656

57-
this._prime = this.GroupPrime;
57+
_prime = GroupPrime;
5858

59-
this._group = new BigInteger(new byte[] { 2 });
59+
_group = new BigInteger(new byte[] { 2 });
6060

61-
this.PopulateClientExchangeValue();
61+
PopulateClientExchangeValue();
6262

63-
this.SendMessage(new KeyExchangeDhInitMessage(this._clientExchangeValue));
63+
SendMessage(new KeyExchangeDhInitMessage(_clientExchangeValue));
6464

6565
}
6666

@@ -71,7 +71,7 @@ public override void Finish()
7171
{
7272
base.Finish();
7373

74-
this.Session.MessageReceived -= Session_MessageReceived;
74+
Session.MessageReceived -= Session_MessageReceived;
7575
}
7676

7777
private void Session_MessageReceived(object sender, MessageEventArgs<Message> e)
@@ -80,12 +80,12 @@ private void Session_MessageReceived(object sender, MessageEventArgs<Message> e)
8080
if (message != null)
8181
{
8282
// Unregister message once received
83-
this.Session.UnRegisterMessage("SSH_MSG_KEXDH_REPLY");
83+
Session.UnRegisterMessage("SSH_MSG_KEXDH_REPLY");
8484

85-
this.HandleServerDhReply(message.HostKey, message.F, message.Signature);
85+
HandleServerDhReply(message.HostKey, message.F, message.Signature);
8686

8787
// When SSH_MSG_KEXDH_REPLY received key exchange is completed
88-
this.Finish();
88+
Finish();
8989
}
9090
}
9191

@@ -188,7 +188,7 @@ protected override int BufferCapacity
188188

189189
protected override void LoadData()
190190
{
191-
throw new System.NotImplementedException();
191+
throw new NotImplementedException();
192192
}
193193

194194
protected override void SaveData()
@@ -197,20 +197,20 @@ protected override void SaveData()
197197
WriteBinaryString(_clientVersion);
198198
WriteBinaryString(_serverVersion);
199199
#else
200-
this.Write(this.ClientVersion);
201-
this.Write(this.ServerVersion);
200+
Write(ClientVersion);
201+
Write(ServerVersion);
202202
#endif
203-
this.WriteBinaryString(this.ClientPayload);
204-
this.WriteBinaryString(this.ServerPayload);
205-
this.WriteBinaryString(this.HostKey);
203+
WriteBinaryString(ClientPayload);
204+
WriteBinaryString(ServerPayload);
205+
WriteBinaryString(HostKey);
206206
#if TUNING
207207
WriteBinaryString(_clientExchangeValue);
208208
WriteBinaryString(_serverExchangeValue);
209209
WriteBinaryString(_sharedKey);
210210
#else
211-
this.Write(this.ClientExchangeValue);
212-
this.Write(this.ServerExchangeValue);
213-
this.Write(this.SharedKey);
211+
Write(ClientExchangeValue);
212+
Write(ServerExchangeValue);
213+
Write(SharedKey);
214214
#endif
215215
}
216216
}

0 commit comments

Comments
 (0)