示例#1
0
        //internal class AuthLogonProof_Result
        //{
        //    public byte m_iCommand = 0;			       // 0x01 CMD_AUTH_LOGON_PROOF
        //    public byte m_iError = 0;
        //    public byte[] M2 = new byte[20];
        //    public uint m_iUnk = 0;
        //    public ushort m_iUnk2 = 0;
        //}

        /// <summary>
        /// 等于 AuthLogonProof_Result 结构
        /// </summary>
        public Auth_AuthProofResult(SecureRemotePassword srp)
            : base((long)AuthOpCode.CMSG_AUTH_PROOF_RESULT, 0)
        {
            WriterStream.Write((byte)AuthOpCode.CMSG_AUTH_PROOF_RESULT);
            WriterStream.Write((byte)LogineErrorInfo.LOGIN_SUCCESS);
            //////////////////////////////////////////////////////////////////////////

            WriterStream.Write(srp.ServerSessionKeyProof.GetBytes(20), 0, 20);

            WriterStream.Fill(0x0, 6);
        }