Skip to main content

finish

Function finish 

Source
pub fn finish(
    data: Step3,
    response: SetClientDhParamsAnswer,
) -> Result<FinishResult, Error>
Expand description

Finalise the handshake.

Returns FinishResult::Done on success or FinishResult::Retry when the server sends dh_gen_retry (up to 5 attempts are typical). On retry, call retry_step3 with the returned fields, send the new request, receive the answer, then call finish again.