More visibility restriction.

This commit is contained in:
antiduh
2014-06-26 18:04:44 +00:00
parent 5b3a92ee66
commit a8b98b3a1e
9 changed files with 13 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ namespace NSspi.Contexts
{
[StructLayout( LayoutKind.Sequential )]
public struct SecPkgContext_Sizes
internal struct SecPkgContext_Sizes
{
public int MaxToken;
public int MaxSignature;
@@ -18,27 +18,8 @@ namespace NSspi.Contexts
}
[StructLayout( LayoutKind.Sequential )]
public struct SecPkgContext_String
internal struct SecPkgContext_String
{
public IntPtr StringResult;
}
public class ContextQueryHandle : SafeHandle
{
public ContextQueryHandle() :
base( IntPtr.Zero, true )
{
}
public override bool IsInvalid
{
get { return base.handle.Equals( IntPtr.Zero ); }
}
protected override bool ReleaseHandle()
{
return ContextNativeMethods.FreeContextBuffer( base.handle ) == SecurityStatus.OK;
}
}
}