Giter Club home page Giter Club logo

Comments (4)

hynek avatar hynek commented on July 1, 2024

I have investigated; the check is okay but lib.ERR_*_error_string(error) can return None nevertheless. No idea why that happens but it does and should taken into account.

from pyopenssl.

hynek avatar hynek commented on July 1, 2024

One more bit:

We’re coping with three problems, so I changed the title of this bug to limit it to two. :)

  1. lib.ERR_*_error_string(error) can return None and we don’t handle that,
  2. in order to get error strings, you need to call ERR_load_SSL_strings first (and free them afterwards I reckon).
    cryptography does not expose this yet, I’ll try to get it into it ASAP: pyca/cryptography#452.

My main problem which made me stumble into the above, is that (after fixing above problems), I get:

OpenSSL.SSL.Error: [('SSL routines', 'SSL_CTX_new', 'library has no ciphers')]

if cryptography is installed normally, but it works if installed with pip install -e. This will go into separate issue once I know more.

from pyopenssl.

exarkun avatar exarkun commented on July 1, 2024

pyOpenSSL still doesn't try to handle None being returned by this API but with the correct initialization now being done I no longer know how to trigger that case. :)

Perhaps this is still hypothetically a problem but not a major one in practice?

Please let me know if you can still reproduce this. If so, I'll try to make it a priority for 0.14. If not, I will probably let it slip to 0.15.

from pyopenssl.

hynek avatar hynek commented on July 1, 2024

I’m not sure if it can happen barring the lack of loading of error strings. But I kind of doubt it.

from pyopenssl.

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.