[openssl-dev] renegotiation failure causes SSL_shutdown to return 1?

Judson Wilson wilson.judson at gmail.com
Thu Jan 21 08:03:21 UTC 2016


Cool!  Thanks for doing that :)

On Wed, Jan 20, 2016 at 6:04 AM, Matt Caswell <matt at openssl.org> wrote:

>
>
> On 05/12/15 09:42, Judson Wilson wrote:
> > I am noticing the following sequence of events:
> >
> > 1) SSL_renegotiate(...), followed by SSL_write(..., 0) fails when a web
> > server rejects it by sending a TCP FIN
> > 2) SSL_get_error returns SSL_ERROR_SSL
> > 3) SSL_in_init(...) is true
> > 4) SSL_shutdown returns 1 <-- this seems strange.
> >
> > I'm not sure that this is the right behavior.  Shutting down in a
> > handshake without sending/receiving close_notify shouldn't give the
> > "everything shutdown gracefully" signal. Perhaps it would be better to
> > return -1 and signal SSL_ERROR_SSL?
>
> This is fixed now (in master and 1.0.2).
>
> Matt
>
> _______________________________________________
> openssl-dev mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160121/cbe4087b/attachment.html>


More information about the openssl-dev mailing list