コード例 #1
0
        static void client_OnKeyValidate(object Sender, SBSSHKeyStorage.TElSSHKey ServerKey, ref bool Validate)
        {
            sbb = new byte[4096];
            var length = 4096;

            ServerKey.SavePublicKey(ref sbb, ref length, TSBEOLMarker.emCRLF);
            Array.Resize(ref sbb, length);
            sbbkey   = ServerKey;
            Validate = true;
            //TElSSHKey t = new TElSSHKey();
            //t.LoadPublicKey(edt, edt.Length);
            //var d = t.FingerprintSHA1.Equals(ServerKey.FingerprintSHA1);
            //Console.WriteLine(d);
            //Validate = d;
        }
コード例 #2
0
ファイル: SSHv4.cs プロジェクト: ajaynokia/AWE-DCM
 private void m_Client_OnKeyValidate(object Sender, SBSSHKeyStorage.TElSSHKey ServerKey, ref bool Validate)
 {
     //System.Console.WriteLine("Server key received")
     Validate = true; // NEVER do this. You MUST check the key somehow
 }