public override void OnRead(RiftClient From)
        {
            Log.Dump("ClientKey", ClientKey, 0, ClientKey.Length);

            From.InitCrypto(ClientKey);

            HandshakeCompression Cp = new HandshakeCompression();
            Cp.Enabled = true;
            From.SendSerialized(Cp);
            From.EnableSendCompress();

            #region 1.1 Client

            HandshakeServerKey ServerKey = new HandshakeServerKey();
            ServerKey.Nid = 420;
            ServerKey.ServerKey = From.LocalPublicKey;
            From.SendSerialized(ServerKey);

            #endregion

            #region 1.2 Client

            //HandshakeServerKey ServerKey = new HandshakeServerKey();
            //ServerKey.Nid = 2980549511;
            //ServerKey.Unk = 3061945505;
            //ServerKey.ServerKey = From.LocalPublicKey;
            //From.SendSerialized(ServerKey);

            #endregion
        }
Exemple #2
0
        public override void OnRead(RiftClient From)
        {
            Log.Dump("ClientKey", ClientKey, 0, ClientKey.Length);

            From.InitCrypto(ClientKey);

            HandshakeCompression Cp = new HandshakeCompression();

            Cp.Enabled = true;
            From.SendSerialized(Cp);
            From.EnableSendCompress();


            HandshakeServerKey ServerKey = new HandshakeServerKey();

            ServerKey.Nid       = 420;
            ServerKey.ServerKey = From.LocalPublicKey;
            From.SendSerialized(ServerKey);
        }