[openssl-users] Cancelling handshake in the middle

Otis Evans otisevans98 at gmail.com
Sun Apr 3 08:17:08 UTC 2016


Explain more
On Apr 3, 2016 2:59 AM, "Michael Kravchenko" <mkrav at yahoo-inc.com> wrote:

> Hi,
>
> (My question is regarding a problem I discovered while developing a DTLS
> client, but I'm not sure that it's specific to DTLS)
>
> What is the proper way to cancel a handshake process in the middle? I have
> a client working with non-blocking BIO, which performs a series of
> SSL_connect() calls to establish connection to the server. Let's say that
> during the handshake process, the client, for some reason, decides to abort
> it. Ideally, I'd like the server to receive an alert message indicating
> that the client will not be finishing the handshake.
>
> SSL_shutdown() cannot be used here, since it works only after the
> handshake.
>
> I cannot find any public API call that could be used in this situation.
> ssl3_send_alert() is not a public API call.
>
> Any ideas on what would be the best way to proceed in this situation?
>
> Thanks
>
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160403/715dceb2/attachment.html>


More information about the openssl-users mailing list