208 {
211 try
212 {
214 {
217 {
218 System.
Net.
NetEventSource.
Info(
this, $
"SSPIWrapper.InitializeSecurityContext() returns statusCode:0x{(int)statusCode.ErrorCode:x8} ({statusCode})",
"GetOutgoingBlob");
219 }
221 {
224 {
225 System.
Net.
NetEventSource.
Info(
this, $
"SSPIWrapper.CompleteAuthToken() returns statusCode:0x{(int)statusCode.ErrorCode:x8} ({statusCode})",
"GetOutgoingBlob");
226 }
227 resultBlob = null;
228 }
229 }
230 else
231 {
234 {
235 System.
Net.
NetEventSource.
Info(
this, $
"SSPIWrapper.AcceptSecurityContext() returns statusCode:0x{(int)statusCode.ErrorCode:x8} ({statusCode})",
"GetOutgoingBlob");
236 }
237 }
238 }
239 finally
240 {
241 if (flag)
242 {
244 }
245 }
247 {
250 if (throwOnError)
251 {
253 }
254 return null;
255 }
257 {
259 }
261 {
263 }
265 {
266 System.
Net.
NetEventSource.
Info(
this, $
"need continue statusCode:0x{(int)statusCode.ErrorCode:x8} ({statusCode}) _securityContext:{_securityContext}",
"GetOutgoingBlob");
267 }
268 return resultBlob;
269 }
System.Net.ContextFlagsPal _contextFlags
ChannelBinding _channelBinding
System.Net.Security.SafeFreeCredentials _credentialsHandle
System.Net.ContextFlagsPal _requestedContextFlags
System.Net.Security.SafeDeleteContext _securityContext
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static System.Net.SecurityStatusPal AcceptSecurityContext(System.Net.Security.SafeFreeCredentials credentialsHandle, ref System.Net.Security.SafeDeleteContext securityContext, System.Net.ContextFlagsPal requestedContextFlags, byte[] incomingBlob, ChannelBinding channelBinding, ref byte[] resultBlob, ref System.Net.ContextFlagsPal contextFlags)
static System.Net.SecurityStatusPal InitializeSecurityContext(ref System.Net.Security.SafeFreeCredentials credentialsHandle, ref System.Net.Security.SafeDeleteContext securityContext, string spn, System.Net.ContextFlagsPal requestedContextFlags, byte[] incomingBlob, ChannelBinding channelBinding, ref byte[] resultBlob, ref System.Net.ContextFlagsPal contextFlags)
static System.Net.SecurityStatusPal CompleteAuthToken(ref System.Net.Security.SafeDeleteContext securityContext, byte[] incomingBlob)
static Win32Exception CreateExceptionFromError(System.Net.SecurityStatusPal statusCode)
static void CacheCredential(System.Net.Security.SafeFreeCredentials newHandle)
SecurityStatusPalErrorCode