diff --git a/StreamExtended/SslTools.cs b/StreamExtended/SslTools.cs index a68f457..7fbcd77 100644 --- a/StreamExtended/SslTools.cs +++ b/StreamExtended/SslTools.cs @@ -15,7 +15,7 @@ public static async Task IsClientHello(CustomBufferedStream stream, Cancel return clientHello != null; } - public static async Task PeekClientHello(CustomBufferedStream clientStream, CancellationToken cancellationToken) + public static async Task PeekClientHello(CustomBufferedStream clientStream, CancellationToken cancellationToken = default (CancellationToken)) { //detects the HTTPS ClientHello message as it is described in the following url: //https://stackoverflow.com/questions/3897883/how-to-detect-an-incoming-ssl-https-handshake-ssl-wire-format @@ -211,7 +211,7 @@ public static async Task IsServerHello(CustomBufferedStream stream, Cancel return serverHello != null; } - public static async Task PeekServerHello(CustomBufferedStream serverStream, CancellationToken cancellationToken) + public static async Task PeekServerHello(CustomBufferedStream serverStream, CancellationToken cancellationToken = default(CancellationToken)) { //detects the HTTPS ClientHello message as it is described in the following url: //https://stackoverflow.com/questions/3897883/how-to-detect-an-incoming-ssl-https-handshake-ssl-wire-format