[openssl-users] Cancelling handshake in the middle
Michael Kravchenko
mkrav at yahoo-inc.com
Sun Apr 3 07:56:51 UTC 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160403/5b210930/attachment.html>
More information about the openssl-users
mailing list