System.Data.SqlClient.SNINativeMethodWrapper.SNISecGenClientContext C# (CSharp) Method

SNISecGenClientContext() static private method

static private SNISecGenClientContext ( System.Data.SqlClient.SNIHandle pConnectionObject, byte inBuff, uint receivedLength, byte OutBuff, uint &sendLength, byte serverUserName ) : uint
pConnectionObject System.Data.SqlClient.SNIHandle
inBuff byte
receivedLength uint
OutBuff byte
sendLength uint
serverUserName byte
return uint
        internal static unsafe uint SNISecGenClientContext(SNIHandle pConnectionObject, byte[] inBuff, uint receivedLength, byte[] OutBuff, ref uint sendLength, byte[] serverUserName)
        {
            fixed (byte* pin_serverUserName = &serverUserName[0])
            {
                bool local_fDone;
                return SNISecGenClientContextWrapper(
                    pConnectionObject,
                    inBuff,
                    receivedLength,
                    OutBuff,
                    ref sendLength,
                    out local_fDone,
                    pin_serverUserName,
                    (uint)serverUserName.Length,
                    null,
                    null);
            }
        }

Usage Example

Ejemplo n.º 1
0
 internal override uint GenerateSspiClientContext(byte[] receivedBuff, uint receivedLength, ref byte[] sendBuff, ref uint sendLength, byte[] _sniSpnBuffer)
 => SNINativeMethodWrapper.SNISecGenClientContext(Handle, receivedBuff, receivedLength, sendBuff, ref sendLength, _sniSpnBuffer);