I can now successfully call InitializeSecurityContext and get a status of ContinueNeeded.

This commit is contained in:
antiduh
2014-06-21 16:32:34 +00:00
parent cc0235262c
commit c64765fbdf
11 changed files with 210 additions and 36 deletions

View File

@@ -78,7 +78,7 @@ namespace NSspi
ref this.expiry
);
if ( status != SecurityStatus.Success )
if ( status != SecurityStatus.OK )
{
throw new SSPIException( "Failed to call AcquireCredentialHandle", status );
}
@@ -117,7 +117,7 @@ namespace NSspi
ref carrier
);
if ( status == SecurityStatus.Success )
if ( status == SecurityStatus.OK )
{
name = Marshal.PtrToStringUni( carrier.Name );
NativeMethods.FreeContextBuffer( carrier.Name );
@@ -155,7 +155,7 @@ namespace NSspi
this.disposed = true;
if ( disposing && result != SecurityStatus.Success )
if ( disposing && result != SecurityStatus.OK )
{
throw new SSPIException( "Failed to release credentials handle", result );
}