Inheritance: IDisposable
示例#1
0
        public SspiContext()
        {
            Handle = new SafeCtxtHandle();

            SecBufferDesc5 = new SecBufferDescEx(new SecBufferEx[5]);

            SecBufferDesc2 = new SecBufferDescEx[]
            {
                new SecBufferDescEx(new SecBufferEx[2]),
                new SecBufferDescEx(new SecBufferEx[2]),
            };

            Buffer = new StreamBuffer();
        }
示例#2
0
        public void AttachBuffer(StreamBuffer buffer)
        {
            Trace();

            OffsetOffset = 0;
            BytesTransferred = buffer.BytesTransferred;

            AttachBuffer(buffer.Detach());

            Count = segment.Count;
        }