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(); }
public void AttachBuffer(StreamBuffer buffer) { Trace(); OffsetOffset = 0; BytesTransferred = buffer.BytesTransferred; AttachBuffer(buffer.Detach()); Count = segment.Count; }