Implement the context-completion check I've had sitting half done.

This commit is contained in:
antiduh
2014-06-25 02:00:05 +00:00
parent 14d8ad5db7
commit ade72b32f4
3 changed files with 29 additions and 14 deletions

View File

@@ -11,7 +11,6 @@ namespace NSspi.Contexts
{
public class ClientContext : Context
{
private bool complete;
private ContextAttrib requestedAttribs;
private ContextAttrib finalAttribs;
private string serverPrinc;
@@ -19,8 +18,6 @@ namespace NSspi.Contexts
public ClientContext( ClientCredential cred, string serverPrinc, ContextAttrib requestedAttribs )
: base( cred )
{
this.complete = false;
this.serverPrinc = serverPrinc;
this.requestedAttribs = requestedAttribs;
}
@@ -112,12 +109,12 @@ namespace NSspi.Contexts
if ( status == SecurityStatus.OK )
{
this.complete = true;
this.Initialized = true;
outToken = null;
}
else if ( status == SecurityStatus.ContinueNeeded )
{
this.complete = false;
this.Initialized = false;
outToken = new byte[outTokenBuffer.Length];
Array.Copy( outTokenBuffer.Buffer, outToken, outToken.Length );