File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ internal void GenSspiClientContext(SspiClientContextStatus sspiClientContextStat
96
96
inSecurityBufferArray = Array . Empty < SecurityBuffer > ( ) ;
97
97
}
98
98
99
- int tokenSize = MaxTokenSize ;
99
+ int tokenSize = NegotiateStreamPal . QueryMaxTokenSize ( securityPackage ) ;
100
+
100
101
SecurityBuffer outSecurityBuffer = new SecurityBuffer ( tokenSize , SecurityBufferType . SECBUFFER_TOKEN ) ;
101
102
102
103
ContextFlagsPal requestedContextFlags = ContextFlagsPal . Connection
@@ -119,7 +120,7 @@ internal void GenSspiClientContext(SspiClientContextStatus sspiClientContextStat
119
120
statusCode . ErrorCode == SecurityStatusPalErrorCode . CompAndContinue )
120
121
{
121
122
inSecurityBufferArray = new SecurityBuffer [ ] { outSecurityBuffer } ;
122
- statusCode = new SecurityStatusPal ( SecurityStatusPalErrorCode . OK ) ;
123
+ statusCode = NegotiateStreamPal . CompleteAuthToken ( ref securityContext , inSecurityBufferArray ) ;
123
124
outSecurityBuffer . token = null ;
124
125
}
125
126
You can’t perform that action at this time.
0 commit comments