You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Signature doesnt match for the key exchange public part. Disconnecting");
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Signature doesnt match for the key exchange public part. Disconnecting");
130
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Signature length doesnt match for the key exchange public part. Disconnecting");
160
131
netManager.DisconnectClient(clientId);
161
132
return;
162
133
}
134
+
for(inti=0;i<clientHash.Length;i++)
135
+
{
136
+
if(clientHash[i]!=serverHash[i])
137
+
{
138
+
//Man in the middle.
139
+
if(LogHelper.CurrentLogLevel<=LogLevel.Normal)if(LogHelper.CurrentLogLevel<=LogLevel.Normal)LogHelper.LogWarning("Signature doesnt match for the key exchange public part. Disconnecting");
140
+
netManager.DisconnectClient(clientId);
141
+
return;
142
+
}
143
+
}
163
144
}
164
145
}
146
+
else
147
+
{
148
+
thrownewCryptographicException("[MLAPI] Only RSA certificates are supported. No valid RSA key was found");
0 commit comments