Hello,
On Mar 14, 2011, at 12:18 AM, Juan Antonio Martinez wrote:

> Using opensc from svn:
> 
> [jantonio@router opensc]$ src/tools/pkcs11-tool -lO
> error: Failed to load pkcs11 module
> Aborting.
> 
> Looking at src/pkcs11/pkcs11-tool.c seems that "opt_module"
> variable is not properly initialized thus C_LoadModule
> is called with "NULL" as module name...

I don't think it is a good idea to have a hardcoded module path in pkcs11-tool, 
see #307 [1]
pkcs11-tool could be a general PKCS#11 tool as the name implies, at the moment 
it has a lot of OpenSC specific trickery in it.

Typing the full module path is a bit more work but makes it very explicit which 
module is intended to be used.
There have been issues when somebody installs from source to /usr/local and 
then doesn't know which module actually gets loaded by pkcs11-tool and that the 
module he explicitly loaded into Firefox are different.

I'd suggest requiring the path to the module as the first argument to 
pkcs11-tool (without --module)

> Is a bug so strange.... no one has noticed it before? 
This was introduced by me lately [2] 


[1] http://www.opensc-project.org/opensc/ticket/307
[2] http://www.opensc-project.org/opensc/ticket/323#comment:7


_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to