Skip to content

Commit 1a1d5b9

Browse files
committed
revert
1 parent 72e8631 commit 1a1d5b9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal class SNIProxy
3636
/// <param name="sendWriter">Writer for send buffer</param>
3737
/// <param name="serverNames">Service Principal Name</param>
3838
/// <returns>SNI error code</returns>
39-
internal static void GenSspiClientContext(SspiClientContextStatus sspiClientContextStatus, ReadOnlyMemory<byte> receivedBuff, IBufferWriter<byte> sendWriter, string serverNames)
39+
internal static void GenSspiClientContext(SspiClientContextStatus sspiClientContextStatus, ReadOnlyMemory<byte> receivedBuff, IBufferWriter<byte> sendWriter, string[] serverNames)
4040
{
4141
// TODO: this should use ReadOnlyMemory all the way through
4242
byte[] array = null;

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/SSPIContextProvider.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ internal abstract class SSPIContextProvider
1515
private SqlAuthenticationParameters? _parameters;
1616
private protected string[] _serverNames = Array.Empty<string>();
1717

18-
internal void Initialize(ServerInfo serverInfo, TdsParserStateObject physicalStateObj, TdsParser parser, string serverName)
19-
=> Initialize(serverInfo, physicalStateObj, parser, new[] { serverName });
20-
21-
internal void Initialize(ServerInfo serverInfo, TdsParserStateObject physicalStateObj, TdsParser parser, string[] serverNames)
18+
internal void Initialize(ServerInfo serverInfo, TdsParserStateObject physicalStateObj, TdsParser parser, params string[] serverNames)
2219
{
2320
Debug.Assert(serverNames.Length > 0);
2421

2522
_parser = parser;
2623
_physicalStateObj = physicalStateObj;
2724
_serverInfo = serverInfo;
25+
_serverNames = serverNames;
2826

2927
_parameters = InitializeAuthenticationParameters(parser.Connection, serverNames[0]);
3028

0 commit comments

Comments
 (0)