コード例 #1
0
ファイル: SaslNtlmv2.cs プロジェクト: BoyarinO/EmailClient
        protected new byte[] ComputeChallengeResponse(byte[] challenge)
        {
            try
            {
                Type2Message msg = Type2Message.Deserialize(challenge);

                byte[] data = new Type3Message(Username, Password, msg.Challenge, Username, true, msg.TargetName, msg.RawTargetInformation).Serialize();
                return data;
            }
            catch (Exception e)
            {
                throw new SaslException("The challenge response could not be " + "computed.", e);
            }
        }
コード例 #2
0
ファイル: SaslNtlm.cs プロジェクト: BoyarinO/EmailClient
 protected byte[] ComputeChallengeResponse(byte[] challenge)
 {
     try
     {
         Type2Message msg = Type2Message.Deserialize(challenge);
         byte[] data = new Type3Message(Username, Password, msg.Challenge, "Workstation").Serialize();
         return data;
     }
     catch (Exception e)
     {
         throw new SaslException("The challenge response could not be " + "computed.", e);
     }
 }