a 'grep MODULE_PATH' produces zero results (0.9.9 CVS head), which
leads to the thought this one will be unused throughout OPENSSL. To
load a particular engine, its path is specified using -pre
SO_PATH:path-to-engine.so.

So first test would be to see if you still have a working system
without that -pre MODULE_PATH entry in your engine commandline -- if
not, now is the time for some head scratching ;-)


Code-wise, there's several bits 'n pieces in

./README.ENGINE

    grep ENGINE_ctrl_cmd_string ./*   to find the right(?) spot

and of course, there's the code in ./apps/engine.c (function
util_do_cmds()) but I am quick to admit this is rather limited info.
Haven't interfaced with OpenSSL through Python, so I cannot help you
out there.

You may wish to check the Python interface to check if you can invoke
the OPENSSL ENGINE_ctrl_cmd_string() function from there... :-S

Ger






On Tue, Jan 6, 2009 at 3:59 PM, Bram Cymet <bcy...@cbnco.com> wrote:
> Hi,
>
> I am trying to implement a new smartcard for a project I am working on.
> I am using M2Crypto as a python wrapper for openSSL. I am able to
> communicate with the smartcard using openssl on the command line just
> fine. The problem I have is with the python side of things.
>
> I can get all the setup engine commands (SO_PATH, LIST_ADD, ID) to work
> fine except for MODULE_PATH. Now I think that the problem is that
> MODULE_PATH is not implemented in M2Crypto. I wouldn't mind implementing
> it myself but I can't find where in the openssl code the MODULE_PATH is
> used. Would someone be able to point me to the right piece of code?
>
> For example on the command line I would do:
>
> OpenSSL> engine -t dynamic -pre SO_PATH:/usr/lib/engines/engine_pkcs11.so \
>         -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD \
>         -pre MODULE_PATH:/usr/lib/opensc-pkcs11.so
>
>
> Any help would be great,
>
> --
> Bram Cymet
> Software Developer
> Centre For Technological Innovation
> Canadian Bank Note Co. Ltd.
> Cell: 613-608-9752
>
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>



-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   g...@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to