Viagra Professional - Buy Online

August 27, 2007

SCF and Windows users

Filed under: SCF — snakecar @ 6:43 pm


SCF uses two existing extensions: Pycsc (a Python PCSC wrapper hosted now I believe on the muscle site … slightly modified) and Pycrypto.

By extension I mean stuff written in C that must be compiled, linked and installed in the correct spot.

As the Python folks use Visual Studio (sigh) to compile python, one must (in general) also have that environment available.

The bad news is that many don’t … the good news is that I do.

The Source/Applications/SCF directory will very soon host those binaries (I know binaries in a source directory makes little sense).

The first binaries I will put in there will be for Python 2.4.x … yes another caveat, I believe, is that the same VS version must be used to compile an extension as was used to compile Python. Guess what: Python 2.5 used VS 2005 !

Now I also have the latter but have not done the job yet, and I currently still use Python 2.4.x.

If you are desperate and _must_ use Python 2.5, post on the forum (general category for now) and I’ll spend some time generating the stuff.

So until I have a clean install, and assuming you have python 2.4x installed in C:\python24 :

copy http://snakecard.com/Source/Applications/SCF/python24/pycsc.pyd to C:\Python24\Lib\site-packages

unzip http://snakecard.com/Source/Applications/SCF/python24/Crypto.zip to C:\Python24\Lib\site-packages

Once that is done SCF should run happily on your PC.

Linux users: use the usual “python setup.py install” command to get the extensions compiled and installed properly.

Philippe


August 28, 2007

GINA Solo

Filed under: GINA — snakecar @ 7:37 pm

A guy I respect very much once told me he wrote his first GINA during a week-end.

Let’s face it, I’m not that bright: already to get it working on a domain-based setting took a few days. But when a partner asked for a workgroup version, trouble started.

Here is/are the thing(s):
1) Under XP “home” (thus the “Solo” deal), winlogon will _not_ send insertion or removal events to the GINA.

2) The Microsoft winlogon service that handles the GINA is not re-entrant (don’t know about Vista, but I am convinced that this statement is correct under 2K and XP).

So to fix 1) I decided to run a second thread that would tell winlogon that the card had been inserted or removed (polling is ugly I know).

Yes but 2) generated an amazing amount of sporadic crashes … that my partner did struggle with (as a user) as much as I did, I must admit.

Being an MSDN lawful subscriber, I got to talk the some of the folks at MS that deal with that … and no go .

A consultant out there (I believe that is Keith: http://www.pluralsight.com/wiki/default.aspx/Keith/CustomizingGINA.html ), has a forum where I posted my problem.

There I was told about that re-entrency problem and that the trick that was usually used (especially in the Microsoft COM code), was to create a hidden window and send it a user’s-event to wake it up (that is scary no ?).

Anyway, that did the trick, and although I am not very proud of my code when I look at it (too much was written at 2 am maybe); next I’ll release that GINA Solo thing (dll in C++, and configuration utility in VB6 … that was before I found out about wxPython).

The released applet was in BasicCard (actually my first GINA applet was in S-Choice: http://www.sci-s.com/schoice_os.htm ) … I think I have one In JavaCard also.

I will release the former and the latter.

Philippe


August 29, 2007

GINA Solo is online

Filed under: GINA — snakecar @ 6:51 pm

I do not know whether my directory layout is the best (doc on one side, code on another, applets on another) versus putting it all in one directory - I had to choose.

As posted earlier, the applet is in BasicCard (love that platform), the GINA itself in C/C++, and the config tool in VB6.

Feedback is welcome.

Philippe


August 30, 2007

Back to epydoc

Filed under: SCF — snakecar @ 4:20 am

I really like Doxygen for Java Card; so I thought that with the third party filter I found, I could get it to work fine on Python … no go for now.

The SCF source documentation is back to the epydoc format. I am trying the new beta release but have yet to check out the new features.

So I just re-ran my hold script (which I’ll have to adjust to add the new stuff) and put the result online: http://www.snakecard.com/Source/Documentation/API/html/
Philippe

Powered by WordPress