35 {
36 global::Interop.SspiCli.ContextFlags
outFlags = global::Interop.SspiCli.ContextFlags.Zero;
37 InputSecurityBuffers
inputBuffers =
default(InputSecurityBuffers);
38 inputBuffers.SetNextBuffer(
new InputSecurityBuffer(inputBuffer, SecurityBufferType.SECBUFFER_TOKEN));
41 {
44 }
45 SecurityBuffer
outputBuffer2 =
new SecurityBuffer(outputBuffer, SecurityBufferType.SECBUFFER_TOKEN);
46 int win32SecurityStatus = SSPIWrapper.AcceptSecurityContext(GlobalSSPI.SSPISecureChannel,
credentialsHandle,
ref context, global::Interop.SspiCli.ContextFlags.ReplayDetect | global::Interop.SspiCli.ContextFlags.SequenceDetect | global::Interop.SspiCli.ContextFlags.Confidentiality | global::Interop.SspiCli.ContextFlags.AllocateMemory | global::Interop.SspiCli.ContextFlags.AcceptExtendedError | global::Interop.SspiCli.ContextFlags.AcceptStream | (
sslAuthenticationOptions.RemoteCertRequired ? global::Interop.SspiCli.ContextFlags.MutualAuth :
global::
Interop.SspiCli.ContextFlags.
Zero),
global::
Interop.SspiCli.Endianness.SECURITY_NATIVE_DREP,
inputBuffers,
ref outputBuffer2,
ref outFlags);
49 }
static byte[] ConvertAlpnProtocolListToByteArray(List< SslApplicationProtocol > protocols)