gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Enhancements for the PCSC driver


From: Pavel Kankovsky
Subject: [PATCH] Enhancements for the PCSC driver
Date: Mon, 24 Mar 2008 19:32:12 +0100 (CET)

Hello! I have added some new functions to the PCSC driver:

1. GN_OP_DeleteSMS and GN_OP_DeletePhonebook make it to wipe data from
SIM cards (the implementation overwrites all bytes deliberately to make
recovery of erased data more difficult),

2. GN_OP_EnterSecurityCode and GN_OP_GetSecurityCodeStatus provide some
basic support for SIM cards protected with PIN (only PIN vulgo CHV1 is
supported and the report of status is somewhat heuristic),

3. GN_OP_GetSMS has been enhanced to return message status (read/unread
etc.) and handle unexpected data (e.g. wiped records) more gracefully.

See the attached gnokii-0.6.24-pcsc.diff. Moreover, I enclose two
additional auxiliary patches I needed to make the driver useful for me:

A. gnokii-0.6.24-cmdline.diff: gnokii (the program) is difficult to use
with SIM cards (unless you disable PIN) because it does one command per
PCSC session. This hack makes it possible to couple --entersecuritycode
with another command, e.g.:
$ gnokii --entersecuritycode PIN --getnetworkinfo

B. gnokii-0.6.24-autoconf.diff: adds support for older versions of
pcsc-lite. I used Gnokii with pcsc-lite 1.3.1 (the version included in my
distro) and as far as I can tell, the only problem with it was the lack of
LPCSTR typedef (worked around by this patch).

I am not subscribed to the list. Cc any replies to me if necessary.

-- 
Pavel Kankovsky aka Peak                          / Jeremiah 9:21        \
"For death is come up into our MS Windows(tm)..." \ 21th century edition /

Attachment: gnokii-0.6.24-pcsc.diff
Description: Text document

Attachment: gnokii-0.6.24-cmdline.diff
Description: Text document

Attachment: gnokii-0.6.24-autoconf.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]