[patch] new dbus control interface method: setSmartcardModules

Dan Williams dcbw
Sun Apr 20 08:16:24 PDT 2008


On Sun, 2008-04-20 at 03:50 +0900, David Smith wrote:
> Hi all,
> 
> I'm attempting to add smartcard support to network manager and this has 
> required adding a way to set pkcs11 and opensc configuration parameters over 
> dbus. I've written a patch that adds a new method, setSmartcardModules, to 
> accomplish this. Before reading the patch, you can get the idea by this test 
> output:

Looks fine to me...

Dan

> <console 1: python dbus session>
> >>> wpasupplicant.setSmartcardModules({'pkcs11_engine_path': 
> dbus.String('/usr/lib/engines/engine_pkcs11.so', 
> variant_level=1), 'pkcs11_module_path':dbus.String('/usr/lib/opencryptoki/libopencryptoki.so', 
> variant_level=1)}, 
> dbus_interface='fi.epitest.hostap.WPASupplicant.Interface')
> dbus.UInt32(1L)
> 
> <console 2: wpa_suplicant -u -dd in gdb>
> Breakpoint 3, wpas_dbus_iface_set_smartcard_modules (message=0x80a2d00, 
> wpa_s=0x80a4ce0) at ctrl_iface_dbus_handlers.c:1201
> (gdb) c
> Continuing.
> ENGINE: Loading dynamic engine
> ENGINE: Loading pkcs11 Engine from /usr/lib/engines/engine_pkcs11.so
> ENGINE: 'SO_PATH' '/usr/lib/engines/engine_pkcs11.so'
> ENGINE: 'ID' 'pkcs11'
> ENGINE: 'LIST_ADD' '1'
> ENGINE: 'LOAD' '(null)'
> ENGINE: 'MODULE_PATH' '/usr/lib/opencryptoki/libopencryptoki.so'
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> EAPOL: disable timer tick  C-c C-c
> 
> I tried to follow the existing coding style and keep everything tidy so I hope 
> this patch can be included at your earliest convenience.
> 
> Cheers,
> dds
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap




More information about the Hostap mailing list