You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidate SSPI context generation to single abstraction (#2255)
* Abstract the SSPI context generation
This change introduces SSPIContextProvider that can generate payloads for SSPI. Specifically, this change plumbs the current SSPI context generation into this object, while later changes will continue to update the shape to be a more general purpose, public API.
SqlClientEventSource.Log.TryTraceEvent("TdsParserStateObjectManaged.GenerateSspiClientContext | Info | Session Id {0}, StatusCode={1}",_sessionHandle?.ConnectionId,statusCode);
402
-
if(statusCodeis not NegotiateAuthenticationStatusCode.Completed and not NegotiateAuthenticationStatusCode.ContinueNeeded)
Trace.Assert(srvSPN.Length<=SNINativeMethodWrapper.SniMaxComposedSpnLength,"Length of the provided SPN exceeded the buffer size.");
169
169
spnBuffer[0]=srvSPN;
170
-
SqlClientEventSource.Log.TryTraceEvent("<{0}.{1}|SEC> Server SPN `{2}` from the connection string is used.",nameof(TdsParserStateObjectNative),nameof(CreatePhysicalSNIHandle),serverSPN);
170
+
SqlClientEventSource.Log.TryTraceEvent("<{0}.{1}|SEC> Server SPN `{2}` from the connection string is used.",nameof(TdsParserStateObjectNative),nameof(CreatePhysicalSNIHandle),serverSPN);
0 commit comments