Beispiel #1
0
		public Type2Message (NtlmVersion version) : base (2, version)
		{
			_nonce = new byte [8];
			RandomNumberGenerator rng = RandomNumberGenerator.Create ();
			rng.GetBytes (_nonce);
			// default values
			Flags = (NtlmFlags) 0x8201;
			if (Version != NtlmVersion.Version1) {
				_context = new byte [8];
				_target = new NtlmTargetInformation ();
			}
		}
        public Type2Message(NtlmVersion version) : base(2, version)
        {
            _nonce = new byte [8];
            RandomNumberGenerator rng = RandomNumberGenerator.Create();

            rng.GetBytes(_nonce);
            // default values
            Flags = (NtlmFlags)0x8201;
            if (Version != NtlmVersion.Version1)
            {
                _context = new byte [8];
                _target  = new NtlmTargetInformation();
            }
        }