Giter Club home page Giter Club logo

Comments (2)

dengert avatar dengert commented on June 23, 2024

If app default has no entries is it dropped?

Does the app pkcs15-init section need a framework pkcs15 section?

sc_pkcs15_bind is where the use_file_cache = scconf_get_str(conf_block, "use_file_caching", use_file_cache); is set, I was not going to insert any card will testing with `pkcs15-init.
When is sc_pkcs15_bind called when running pkcs15-init?

Some simple tests if app default has debug and debug file set
and app pkcs15-init section has a different debug and debug file,
The debug log was written to the file from the app pkcs15-init section.

from opensc.

Jakuje avatar Jakuje commented on June 23, 2024

I think there are several problems when we will start use multiple blocks. The first logging example will not work because:

  • the pkcs15-init sets some debug and debug_file when initializing context with the --verbose argument. The can only increase debug log. This is mostly ok.
  • the load_parameters() handles the debug_file weirdly -- if it is in the block, it is set, if it is not in the last block (last block in the order of processing is most of the time the app default block), its unset even if it was set by previous blocks. I think this is a bug that should be fixed.

About the file_caching, the issue is that the sc_get_conf_block() returns only the first framework pkcs15 block in the first app block, regardless it contains the options we search for later or not. So if the first matched app block (in this case the app pkcs15-init) contains the framework pkcs15, it overrides the whole framework pkcs15 in the default block configuration. I think this is at least confusing and should be explicitly explained somewhere to avoid the need to read through the code to understand how the configuration works.

from opensc.

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.