Example #1
0
        public bool UpdateChallenge(ByteArrayPart nonce, ByteArrayPart opaque, ByteArrayPart qop)
        {
            lock (sync)
            {
                this.nonce  = nonce.DeepCopy();
                this.opaque = opaque.DeepCopy();
                this.qop    = qop.IsValid ? AuthQops.Auth : AuthQops.None;

                return(true);
            }
        }
            public SecurityAssociation(int opaque, AuthSchemes scheme, ByteArrayPart targetname)            //, SafeCredHandle credentials)
            {
                this.scheme        = scheme;
                this.targetname    = targetname.DeepCopy();
                this.Opaque        = opaque;
                this.contextHandle = new SafeCtxtHandle();

                this.expireTime = DateTime.MaxValue;
                this.idleTime   = DateTime.MaxValue;
                this.idleTimeUpdatedByExpires = false;

                this.outSnum = 0;
                this.inCnum  = 0;
                //_SlidingWindow.SetAll(false);
            }
Example #3
0
		public bool UpdateChallenge(ByteArrayPart nonce, ByteArrayPart opaque, ByteArrayPart qop)
		{
			lock (sync)
			{
				this.nonce = nonce.DeepCopy();
				this.opaque = opaque.DeepCopy();
				this.qop = qop.IsValid ? AuthQops.Auth : AuthQops.None;

				return true;
			}
		}