Exemple #1
0
        protected override async Task <MonoSslStream> Start(TestContext ctx, Stream stream, MSI.MonoTlsSettings settings, CancellationToken cancellationToken)
        {
            ctx.LogMessage("Connected.");

            var targetHost = Parameters.TargetHost ?? EndPoint.HostName ?? EndPoint.Address;

            ctx.LogDebug(1, "Using '{0}' as target host.", targetHost);

            var client = await ConnectionProvider.CreateClientStreamAsync(stream, targetHost, Parameters, settings, cancellationToken);

            ctx.LogMessage("Successfully authenticated client.");

            return(client);
        }