Giter VIP home page Giter VIP logo

Comments (4)

danni avatar danni commented on June 14, 2024

Yep I'm aware of this. In general the dynamic loading should be reworked to make it easier to support Windows as well. Also not every implementation offers all the symbols, and you currently SEGV if you try to use a symbol that is not supplied by the library, e.g. encrypt on Nitrokey.

from python-pkcs11.

fzonneveld avatar fzonneveld commented on June 14, 2024

This has got nothing to do with Windows or linux. I am using linux for all. The problem is that these symbols that you describe should not be used, but only the C_GetFunctionList should be used. The result of this function return a list of function pointers, where non supprted functions are set to to a function which return CKR_FUNCTION_NOT_SUPPORTED. All this is clearly specified in http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html
Assumption that a PKCS#11 compatible library exposes other symbols like for example C_Encrypt is wrong.

from python-pkcs11.

danni avatar danni commented on June 14, 2024

Yes I understand. I'm saying this fix would also help resolve an issue with Windows in general.

from python-pkcs11.

danni avatar danni commented on June 14, 2024

Fixed in #32

from python-pkcs11.

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.