Now with consistent namespaces and using statement sorting.
This commit is contained in:
@@ -4,6 +4,8 @@ using System.Linq;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using NSspi.Buffers;
|
||||||
|
using NSspi.Credentials;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Contexts
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
using NSspi.Contexts;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Runtime.InteropServices;
|
using NSspi.Buffers;
|
||||||
using System.Runtime.CompilerServices;
|
using NSspi.Contexts;
|
||||||
|
using NSspi.Credentials;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Contexts
|
||||||
{
|
{
|
||||||
public class Context : IDisposable
|
public class Context : IDisposable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,9 +6,10 @@ using System.Runtime.ConstrainedExecution;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using NSspi.Buffers;
|
||||||
using NSspi.Contexts;
|
using NSspi.Contexts;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Contexts
|
||||||
{
|
{
|
||||||
internal static class ContextNativeMethods
|
internal static class ContextNativeMethods
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using NSspi.Buffers;
|
||||||
|
using NSspi.Credentials;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Contexts
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public class ClientCredential : Credential
|
public class ClientCredential : Credential
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using NSspi.Credentials;
|
using NSspi.Credentials;
|
||||||
|
using NSspi.Credentials.Credentials;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public class Credential : IDisposable
|
public class Credential : IDisposable
|
||||||
{
|
{
|
||||||
@@ -40,11 +41,11 @@ namespace NSspi
|
|||||||
{
|
{
|
||||||
packageName = PackageNames.Kerberos;
|
packageName = PackageNames.Kerberos;
|
||||||
}
|
}
|
||||||
else if ( package == NSspi.SecurityPackage.Negotiate )
|
else if ( package == SecurityPackage.Negotiate )
|
||||||
{
|
{
|
||||||
packageName = PackageNames.Negotiate;
|
packageName = PackageNames.Negotiate;
|
||||||
}
|
}
|
||||||
else if ( package == NSspi.SecurityPackage.NTLM )
|
else if ( package == SecurityPackage.NTLM )
|
||||||
{
|
{
|
||||||
packageName = PackageNames.Ntlm;
|
packageName = PackageNames.Ntlm;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,9 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using NSspi.Credentials;
|
using NSspi.Credentials;
|
||||||
|
using NSspi.Credentials.Credentials;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
internal static class CredentialNativeMethods
|
internal static class CredentialNativeMethods
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public enum SecurityPackage
|
public enum SecurityPackage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
#define SECPKG_CRED_ATTR_NAMES 1
|
#define SECPKG_CRED_ATTR_NAMES 1
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public enum CredentialType
|
public enum CredentialType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public enum CredentialUse : uint
|
public enum CredentialUse : uint
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Credentials
|
namespace NSspi.Credentials.Credentials
|
||||||
{
|
{
|
||||||
[StructLayout( LayoutKind.Sequential )]
|
[StructLayout( LayoutKind.Sequential )]
|
||||||
public struct QueryNameAttribCarrier
|
public struct QueryNameAttribCarrier
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi.Credentials
|
||||||
{
|
{
|
||||||
public class ServerCredential : Credential
|
public class ServerCredential : Credential
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using NSspi.Contexts;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Runtime.ConstrainedExecution;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Runtime.ConstrainedExecution;
|
using NSspi.Contexts;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using NSspi.Contexts;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -8,6 +7,8 @@ using System.Security.Principal;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
using NSspi.Contexts;
|
||||||
|
using NSspi.Credentials;
|
||||||
|
|
||||||
namespace NSspi
|
namespace NSspi
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Buffers
|
||||||
{
|
{
|
||||||
[StructLayout( LayoutKind.Sequential )]
|
[StructLayout( LayoutKind.Sequential )]
|
||||||
public struct SecureBufferInternal
|
public struct SecureBufferInternal
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Buffers
|
||||||
{
|
{
|
||||||
public class SecureBufferAdapter : IDisposable
|
public class SecureBufferAdapter : IDisposable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Buffers
|
||||||
{
|
{
|
||||||
public enum SecureBufferDataRep : int
|
public enum SecureBufferDataRep : int
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Buffers
|
||||||
{
|
{
|
||||||
[StructLayout( LayoutKind.Sequential)]
|
[StructLayout( LayoutKind.Sequential)]
|
||||||
public struct SecureBufferDescInternal
|
public struct SecureBufferDescInternal
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NSspi.Contexts
|
namespace NSspi.Buffers
|
||||||
{
|
{
|
||||||
public enum BufferType : int
|
public enum BufferType : int
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user