Giter VIP home page Giter VIP logo

Comments (5)

4a6f656c avatar 4a6f656c commented on June 8, 2024

The only time libtls calls ERR_* is if we got a SSL_ERROR_SYSCALL or SSL_ERROR_SSL error code. I would think that calling ERR_* on EOF is actually the wrong thing to be doing.

from openbsd.

markokr avatar markokr commented on June 8, 2024

Well, thats how SSL_read()=0 is documented:

Call SSL_get_error() with the return value ret to find out, whether an error occurred or the connection was shut down cleanly (SSL_ERROR_ZERO_RETURN).

Either libssl always calls SSLerr() when it return 0, or libtls needs to clear error before calling SSL_read().

Alternative is also not to look at error on '0' return , always assume it's EOF. I suspect this may be quite popular solution.

from openbsd.

markokr avatar markokr commented on June 8, 2024

It is reproducible with libressl too - just put:

SSLerr(SSL_F_SSL3_CONNECT, SSL_R_COOKIE_MISMATCH);

before calling tls_read() and see what happens.

from openbsd.

bob-beck avatar bob-beck commented on June 8, 2024

I'm laughing at Joel, and he's crying..

we'll clear it..

On Sat, Sep 12, 2015 at 12:04:51PM -0700, Marko Kreen wrote:

It is reproducible with libressl too - just put:

SSLerr(SSL_F_SSL3_CONNECT, SSL_R_COOKIE_MISMATCH);

before calling tls_read() and see what happens.


Reply to this email directly or view it on GitHub:
#44 (comment)

from openbsd.

4a6f656c avatar 4a6f656c commented on June 8, 2024

Fixed, thanks.

from openbsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.