Bug 1283306

Summary: [RFE] export all C_* functions in pkcs11-spy
Product: [Fedora] Fedora Reporter: Petr Spacek <pspacek>
Component: openscAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: gmazyland, klember, nmavrogi, stefw, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: opensc-0.15.0-4.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1283305 Environment:
Last Closed: 2016-01-28 18:29:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Spacek 2015-11-18 16:35:15 UTC
Description of problem:
Header files distributed with PKCS#11 v2.30 define all functions as extern and some applications (like BIND 9.10) do not work without all functions being exported.

Version-Release number of selected component (if applicable):
opensc-0.15.0-2.fc23

How reproducible:
100 %

Steps to Reproduce:
0. configure PKCS#11 provider of your choice and try to use it with pkcs11spy & BIND-pkcs11 build
1. $ yum install bind-pkcs11-utils
2. $ export PKCS11_PROVIDER=/usr/lib64/pkcs11/pkcs11-spy.so
3. $ export PKCS11SPY=/path/to/your/pkcs11/provider.so
4. $ pkcs11-list

Actual results:
pkcs11-list does not work

Expected results:
pkcs11-list does work

Additional info:
This was fixed upstream in https://github.com/OpenSC/OpenSC/pull/590

This change would be tremendously useful for DNSSEC debugging in FreeIPA.

Comment 1 Nikos Mavrogiannopoulos 2015-11-19 10:17:21 UTC
There is some difference in 0.15.0 and their current master. Could you test the rawhide build if it addresses your issue?
http://koji.fedoraproject.org/koji/taskinfo?taskID=11903680

Comment 2 Nikos Mavrogiannopoulos 2015-11-23 11:00:34 UTC
Scratch build for f23:
https://koji.fedoraproject.org/koji/taskinfo?taskID=11951117

Comment 3 Petr Spacek 2016-01-12 15:34:53 UTC
For the sake of testing, I re-built the code in Fedora git branch f23 and it works for my use cases. Feel free to push it to Fedora whenever it suits you.

Comment 4 Fedora Update System 2016-01-18 14:35:00 UTC
opensc-0.15.0-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-30b36854a0

Comment 5 Fedora Update System 2016-01-20 03:55:16 UTC
opensc-0.15.0-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-30b36854a0

Comment 6 Fedora Update System 2016-01-28 18:29:24 UTC
opensc-0.15.0-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.