16 : base(ownsHandle: true)
22 if (safeHandle !=
null)
81 [DllImport(
"winhttp.dll",
CharSet =
CharSet.Unicode, SetLastError =
true)]
84 [DllImport(
"winhttp.dll",
CharSet =
CharSet.Unicode, SetLastError =
true)]
88 [DllImport(
"winhttp.dll",
CharSet =
CharSet.Unicode, SetLastError =
true)]
92 [DllImport(
"winhttp.dll",
CharSet =
CharSet.Unicode, SetLastError =
true)]
146 [StructLayout(
LayoutKind.Sequential, Pack = 1)]
245 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
248 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
251 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
254 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
257 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
260 [DllImport(
"sspicli.dll",
CharSet =
CharSet.Unicode, ExactSpelling =
true, SetLastError =
true)]
261 internal unsafe
static extern int AcquireCredentialsHandleW([In]
string principal, [In]
string moduleName, [In]
int usage, [In]
void* logonID, [In]
IntPtr zero, [In]
void* keyCallback, [In]
void* keyArgument, ref
CredHandle handlePtr, out
long timeStamp);
263 [DllImport(
"sspicli.dll",
CharSet =
CharSet.Unicode, ExactSpelling =
true, SetLastError =
true)]
266 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
267 internal unsafe
static extern int InitializeSecurityContextW(ref
CredHandle credentialHandle, [In]
void* inContextPtr, [In]
byte* targetName, [In]
ContextFlags inFlags, [In]
int reservedI, [In]
Endianness endianness, [In]
SecBufferDesc* inputBuffer, [In]
int reservedII, ref
CredHandle outContextPtr, [In][Out] ref
SecBufferDesc outputBuffer, [In][Out] ref
ContextFlags attributes, out
long timeStamp);
269 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
272 [DllImport(
"sspicli.dll", ExactSpelling =
true, SetLastError =
true)]
275 [DllImport(
"sspicli.dll",
CharSet =
CharSet.Unicode, ExactSpelling =
true, SetLastError =
true)]
static SECURITY_STATUS SspiEncodeStringsAsAuthIdentity([In] string userName, [In] string domainName, [In] string password, out System.Net.Security.SafeSspiAuthDataHandle authData)
static unsafe int AcceptSecurityContext(ref CredHandle credentialHandle, [In] void *inContextPtr, [In] SecBufferDesc *inputBuffer, [In] ContextFlags inFlags, [In] Endianness endianness, ref CredHandle outContextPtr, [In][Out] ref SecBufferDesc outputBuffer, [In][Out] ref ContextFlags attributes, out long timeStamp)
static unsafe int AcquireCredentialsHandleW([In] string principal, [In] string moduleName, [In] int usage, [In] void *logonID, [In] System.Net.Security.SafeSspiAuthDataHandle authdata, [In] void *keyCallback, [In] void *keyArgument, ref CredHandle handlePtr, out long timeStamp)
static int FreeContextBuffer([In] IntPtr contextBuffer)
static unsafe int AcquireCredentialsHandleW([In] string principal, [In] string moduleName, [In] int usage, [In] void *logonID, [In] IntPtr zero, [In] void *keyCallback, [In] void *keyArgument, ref CredHandle handlePtr, out long timeStamp)
static SECURITY_STATUS SspiFreeAuthIdentity([In] IntPtr authData)
static unsafe int CompleteAuthToken([In] void *inContextPtr, [In][Out] ref SecBufferDesc inputBuffers)
static int EnumerateSecurityPackagesW(out int pkgnum, out System.Net.Security.SafeFreeContextBuffer_SECURITY handle)
static int DeleteSecurityContext(ref CredHandle handlePtr)
@ InitManualCredValidation
static unsafe int InitializeSecurityContextW(ref CredHandle credentialHandle, [In] void *inContextPtr, [In] byte *targetName, [In] ContextFlags inFlags, [In] int reservedI, [In] Endianness endianness, [In] SecBufferDesc *inputBuffer, [In] int reservedII, ref CredHandle outContextPtr, [In][Out] ref SecBufferDesc outputBuffer, [In][Out] ref ContextFlags attributes, out long timeStamp)
static int FreeCredentialsHandle(ref CredHandle handlePtr)
override bool ReleaseHandle()
SafeWinHttpHandle _parentHandle
static void DisposeAndClearHandle(ref SafeWinHttpHandle safeHandle)
static SafeWinHttpHandle WinHttpOpen(IntPtr userAgent, uint accessType, string proxyName, string proxyBypass, int flags)
static bool WinHttpCloseHandle(IntPtr handle)
static bool WinHttpGetIEProxyConfigForCurrentUser(out WINHTTP_CURRENT_USER_IE_PROXY_CONFIG proxyConfig)
static bool WinHttpGetProxyForUrl(SafeWinHttpHandle sessionHandle, string url, ref WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions, out WINHTTP_PROXY_INFO proxyInfo)
@ ApplicationProtocolMismatch
@ NoAuthenticatingAuthority
override string ToString()
unsafe SecBufferDesc(int count)
static unsafe readonly int Size
System.Net.Security.SecurityBufferType BufferType
bool AutoLoginIfChallenged
unsafe override string ToString()
static readonly IntPtr Zero