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... Is a bug so strange.... no one has noticed it before? this patch solves the problem: =================================================================== --- src/tools/pkcs11-tool.c (revisión: 5228) +++ src/tools/pkcs11-tool.c (copia de trabajo) @@ -35,6 +35,7 @@ #include "pkcs11/pkcs11.h" #include "pkcs11/pkcs11-opensc.h" +#include "pkcs11/sc-pkcs11.h" #include "util.h" extern void *C_LoadModule(const char *name, CK_FUNCTION_LIST_PTR_PTR); @@ -163,7 +164,7 @@ static int verbose = 0; static const char * opt_input = NULL; static const char * opt_output = NULL; -static const char * opt_module = NULL; +static const char * opt_module = PKCS11_DEFAULT_MODULE_NAME; static int opt_slot_set = 0; static CK_SLOT_ID opt_slot = 0; static const char * opt_slot_label = NULL; ------------------------------------------------------------ Juan Antonio _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel