示例#1
0
        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
 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);
     }
 }