{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/1265","repository_url":"https://api.github.com/repos/OpenSC/OpenSC","labels_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/1265/comments","events_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/1265/events","html_url":"https://github.com/OpenSC/OpenSC/issues/1265","id":295490369,"number":1265,"title":"Allow card-insert events of empty cards for provisioning","user":{"login":"Jakuje","id":2694489,"avatar_url":"https://avatars3.githubusercontent.com/u/2694489?v=4","gravatar_id":"","url":"https://api.github.com/users/Jakuje","html_url":"https://github.com/Jakuje","followers_url":"https://api.github.com/users/Jakuje/followers","following_url":"https://api.github.com/users/Jakuje/following{/other_user}","gists_url":"https://api.github.com/users/Jakuje/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakuje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakuje/subscriptions","organizations_url":"https://api.github.com/users/Jakuje/orgs","repos_url":"https://api.github.com/users/Jakuje/repos","events_url":"https://api.github.com/users/Jakuje/events{/privacy}","received_events_url":"https://api.github.com/users/Jakuje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-02-08T12:15:24Z","updated_at":"2018-02-10T19:01:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Problem Description\r\nThe ESC needs to receive card-insert events about inserted empty cards for provisioning. So far this functionality was provided by coolkey. We would be interested in something similar for OpenSC and this issue is mostly to discuss possibilities and preferred solution.\r\n\r\n### Proposed Resolution\r\nSo far, the Coolkey PKCS#11 library was used and was using the [`pReserved` pointer in the end of the `CK_C_INITIALIZE_ARGS`](https://github.com/elmarco/coolkey/blob/master/src/coolkey/coolkey.cpp#L223) structure to enable this feature. The first possibility is to mimic this behavior and implement something similar in OpenSC PKCS#11. This argument [SHOULD be NULL in PKCS#11 2.40](http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html#_Toc416959692) and therefore is correctly checked in OpenSC, but not used to anything else yet. I agree that this might be non-standard and therefore not wanted.\r\n\r\nThe other possibility that we discussed was the implementation of bogus `blank` card driver, that would be disabled by default and would \"match\" also for empty cards. Turning this on would require passing environment variable `OPENSC_CONF` which would include also this driver in the end, but it would require ensuring that the second configuration file is in sync with the current.\r\n\r\nOther possibility could be some configuration option, that would turn it on and off. That might be the cleanest and simplest way.\r\n\r\nOr do you thing about some other way how the similar thing can be achieved, that would be acceptable by OpenSC?"},"comment":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/comments/364680855","html_url":"https://github.com/OpenSC/OpenSC/issues/1265#issuecomment-364680855","issue_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/1265","id":364680855,"user":{"login":"Jakuje","id":2694489,"avatar_url":"https://avatars3.githubusercontent.com/u/2694489?v=4","gravatar_id":"","url":"https://api.github.com/users/Jakuje","html_url":"https://github.com/Jakuje","followers_url":"https://api.github.com/users/Jakuje/followers","following_url":"https://api.github.com/users/Jakuje/following{/other_user}","gists_url":"https://api.github.com/users/Jakuje/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakuje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakuje/subscriptions","organizations_url":"https://api.github.com/users/Jakuje/orgs","repos_url":"https://api.github.com/users/Jakuje/repos","events_url":"https://api.github.com/users/Jakuje/events{/privacy}","received_events_url":"https://api.github.com/users/Jakuje/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T19:01:02Z","updated_at":"2018-02-10T19:01:02Z","author_association":"CONTRIBUTOR","body":"Thank you for the comments. We are still more in the research phase what needs to be done and how. If there will be some more issues, I will come back."}}
{"actor":{"display_login":"Jakuje"}}