Comments (2)
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.
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 somedebug
anddebug_file
when initializing context with the--verbose
argument. The can only increase debug log. This is mostly ok. - the
load_parameters()
handles thedebug_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 theapp 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)
- Minidriver function CardRSADecrypt returns incorrect length when unpadding SC_ALGORITHM_RSA_RAW/CARD_PADDING_PKCS1 HOT 2
- pkcs11-tool fails with (GetSlotInfo failed, CKR_MECHANISM_INVALID) since 0.24 when built with --disable-openssl HOT 9
- How to Check if PKCS11 module is valid or not HOT 1
- OpenPGP card v3.4 pkcs15-init reports not supported private key HOT 13
- Use of biometrics to un-lock smart card HOT 5
- Automate provisioning of WinGet package for OpenSC HOT 8
- Using OpenSC enabled token for signing PDF documents in Adobe HOT 2
- Card misidentification HOT 13
- OpenSC in Firefox constantly sending SELECT(AID) APDUs for probing HOT 2
- Avoid non SELECT(AID) commands for probing HOT 28
- Install p11-kit configuration file HOT 1
- JPKI SELECT AID not following ISO standards HOT 1
- OpenSC 0.25.1 dmg not notarized correctly HOT 2
- SmartCard-HSM issue with Windows AD Smart Card Logon & Micrsoft Encrypting File System HOT 4
- SmartCard-HSM issue with Microsoft Word 2019 & Outlook 2019 HOT 2
- Receiving "No slots" output from pkcs11-tool at boot time HOT 4
- Importing encrypted RSA and plain RSA private keys in SmartCard-HSM HOT 6
- SmartCard-HSM Error creating HSM backup smart card HOT 2
- OpenPGP card v3.4 DestroyObject returns as ok, but does nothing HOT 1
- pkcs11-tool should provide an option to get slot information as pkcs11-uri HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensc.