System.Data.SqlClient.TdsParser.SNISSPIData C# (CSharp) Méthode

SNISSPIData() private méthode

private SNISSPIData ( byte receivedBuff, UInt32 receivedLength, byte sendBuff, UInt32 &sendLength ) : void
receivedBuff byte
receivedLength System.UInt32
sendBuff byte
sendLength System.UInt32
Résultat void
        private void SNISSPIData(byte[] receivedBuff, UInt32 receivedLength, byte[] sendBuff, ref UInt32 sendLength)
        {
            if (receivedBuff == null)
            {
                // we do not have SSPI data coming from server, so send over 0's for pointer and length
                receivedLength = 0;
            }
            // we need to respond to the server's message with SSPI data
#if MANAGED_SNI
            if (0 != SNIProxy.Singleton.GenSspiClientContext(_physicalStateObj.Handle, receivedBuff, receivedLength, sendBuff, ref sendLength, _sniSpnBuffer, (uint)_sniSpnBuffer.Length)) 
#else
            if (0 != SNINativeMethodWrapper.SNISecGenClientContext(_physicalStateObj.Handle, receivedBuff, receivedLength, sendBuff, ref sendLength, _sniSpnBuffer))
#endif // MANAGED_SNI
            {
                SSPIError(SQLMessage.SSPIGenerateError(), TdsEnums.GEN_CLIENT_CONTEXT);
            }
        }
TdsParser