Rough implementation of impersonation.

This commit is contained in:
antiduh
2014-06-25 20:12:46 +00:00
parent 9118815314
commit 5f3fd64169
4 changed files with 124 additions and 10 deletions

View File

@@ -13,15 +13,13 @@ namespace NSspi.Contexts
{
public class Context : IDisposable
{
private bool disposed;
public Context( Credential cred )
{
this.Credential = cred;
this.ContextHandle = new SafeContextHandle();
this.disposed = false;
this.Disposed = false;
this.Initialized = false;
}
@@ -55,6 +53,8 @@ namespace NSspi.Contexts
}
}
public bool Disposed { get; private set; }
public void Dispose()
{
Dispose( true );
@@ -63,7 +63,7 @@ namespace NSspi.Contexts
protected virtual void Dispose( bool disposing )
{
if( this.disposed ) { return; }
if( this.Disposed ) { return; }
if( disposing )
{
@@ -72,7 +72,7 @@ namespace NSspi.Contexts
}
this.disposed = true;
this.Disposed = true;
}
/// <summary>
@@ -359,6 +359,10 @@ namespace NSspi.Contexts
return result;
}
private void InitSecPkgInfo()
{
}
}
}