From d44e7a16f7d2823cc658e39b5d953ba0850e47ba Mon Sep 17 00:00:00 2001
From: juhlig <j.uhlig@mailingwork.de>
Date: Tue, 17 Sep 2019 17:55:25 +0200
Subject: Enable multiple steps handshake

Also fix some Protocol:start_link/4 into start_link/3
left over in the documentation.
---
 doc/src/manual/ranch_ssl.asciidoc | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'doc/src/manual/ranch_ssl.asciidoc')

diff --git a/doc/src/manual/ranch_ssl.asciidoc b/doc/src/manual/ranch_ssl.asciidoc
index 00f6fad..66f91b1 100644
--- a/doc/src/manual/ranch_ssl.asciidoc
+++ b/doc/src/manual/ranch_ssl.asciidoc
@@ -54,6 +54,7 @@ ssl_opt() = {alpn_preferred_protocols, [binary()]}
           | {dhfile, file:filename()}
           | {eccs, [atom()]}
           | {fail_if_no_peer_cert, boolean()}
+          | {handshake, hello | full}
           | {hibernate_after, timeout()}
           | {honor_cipher_order, boolean()}
           | {honor_ecc_order, boolean()}
@@ -156,6 +157,15 @@ fail_if_no_peer_cert (false)::
 Whether to refuse the connection if the client sends an
 empty certificate.
 
+handshake (full)::
+
+If `hello` is specified for this option, the handshake is
+paused after receiving the client hello message. The handshake
+can then be resumed via `handshake_continue/3`, or cancelled
+via `handshake_cancel/1`.
++
+This option cannot be given to `ranch:handshake/1,2`.
+
 hibernate_after (undefined)::
 
 Time in ms after which SSL socket processes go into
-- 
cgit v1.2.3

