Re: [Muscle] PKCS#11 troubleshooting

2006-08-09 Thread Martin Leung
The apduview utility may help: http://www.fernandes.org/apduview/index.html Martin Karsten Ohme wrote: Gambin Dejan wrote: Thanks Karsten, maybe I would give it a try but it is obvious I can't do anything if I don't have apdu debugging so I could see what is being sent to the card. Can you te

Re: [Muscle] Card insertion/removal detection?

2005-08-09 Thread Martin Leung
Hi Geoff, You may use the SCardGetStatusChange PC/SC API to monitor the reader. Rgds. Martin Geoffrey Elgey wrote: G'day, I want to perform certain actions when a token is removed or inserted into a slot. The PKCS#11 library includes a "WaitForSlotEvent" function, but apparently this is not

Re: [Muscle] building libmusclecard on win32

2005-07-26 Thread Martin Leung
sclecard.dll /i mplib:Release\musclecard.lib /libpath:D:\MyCodes\muscle\pthread\v1.11.0\lib Rele ase\PCSC.obj Release\debuglog.obj Release\dyn_win32.obj Release\musclecard.ob j Release\StdAfx.obj Release\strlcat.obj Release\strlcpy.obj Release\thread_ unix.obj Release\tokenfactory.obj Re

Re: [Muscle] building libmusclecard on win32

2005-07-26 Thread Martin Leung
SET_VCVARS%==.Y call c:vcvars32.bat if not .%_SET_VCVARS%==.Y set _SET_VCVARS=Y c:nmake -f PCSC.mak PTHREADS_INC=%PTHREADS_INC% PTHREADS_LIB=%PTHREADS_LIB% PTHREADS_NAME=%PTHREADS_NAME% FLEX=%FLEX% PCSC_INC=%PCSC_INC% Rgds. Martin Karsten Ohme wrote: Martin Leung wrote: Hi, I am trying to buil

[Muscle] building libmusclecard on win32

2005-07-25 Thread Martin Leung
Hi, I am trying to build libmusclecard on Win32 and have a few questions. 1. How to create tokenparser.c on Win32? There is no tokenparser.c in cvs. I downloaded the src to Fedora and make tokenparser.c there. Is this the right way to do so? Also, the tokenparser.c generated in this

[Muscle] a few more pkcs11 patches

2005-07-25 Thread Martin Leung
Hi, Below are a few more minor patches: 1. x_slot_no_duplicate_enum.diff - avoid re-examine of session object everytime a match is found 2. x_slot_mech.diff - I think mechanism info shall include only flags that supported by the token. In particular, the CKF_WRAP flag caused some pre

Re: [Muscle] Building pkcs11 on Windows

2005-07-25 Thread Martin Leung
Hi Ludovic, Ludovic Rousseau wrote: On 20/07/05, Martin Leung <[EMAIL PROTECTED]> wrote: Hi, Hello, Just to share some tips/fixes that make the cvs version of PKCS11 to build on Windows: 2. Fix signed/unsigned mismatch compiler warnings - see p11_object.diff and p11x_objec

[Muscle] read prefs file based on registry setting

2005-07-19 Thread Martin Leung
Hi, The attached patch uses Windows registry to allow a installation dir based and system wide pkcs11rc file. Rgds. Martin diff -u -8 -r cvs\muscleapps\PKCS11/src/p11x_prefs.c muscleapps\PKCS11/src/p11x_prefs.c --- cvs\muscleapps\PKCS11/src/p11x_prefs.c 2003-10-04 16:28:02.0 +08

[Muscle] completely disable pkcs11 logging

2005-07-19 Thread Martin Leung
Hi, This attached patch is to allow completely disable logging from the PKCS11 module. I think a production version should have such option. Rgds. Martin diff -u -8 -r cvs\muscleapps\PKCS11/include/cryptoki.h muscleapps\PKCS11/include/cryptoki.h --- cvs\muscleapps\PKCS11/include/cryptoki.h

[Muscle] Building pkcs11 on Windows

2005-07-19 Thread Martin Leung
Hi, Just to share some tips/fixes that make the cvs version of PKCS11 to build on Windows: 1. cvs gets pcsclite and pkcs11 mkdir pcsclite cd pcsclite cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pcsclite login cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/pcsclite co PCSC cd .. mkdir muscleapps

Re: [Muscle] mozilla can't add PKCS11 module

2004-04-14 Thread Martin Leung
Hi John, You can turn on the pkcs11 log on by setting the debugLevel in pkcs11rc to LOW. Also, AuthentIC plugin sends log to stdout by default. Rgds. Martin John McBride wrote: Martin Leung wrote: Hi, If the card has the authentIC applet loaded, it may not be required to install the muscle

Re: [Muscle] mozilla can't add PKCS11 module

2004-04-13 Thread Martin Leung
Hi, If the card has the authentIC applet loaded, it may not be required to install the muscle applet. The error "Token is unsupported" seems atr of inserted card is not registered. You may want to check out the authentIC plugin log to see what's happening. Rgds. Martin Damien Sauveron wrote:

Re: [Muscle] development environment for Oberthur JavaCard?

2004-04-01 Thread Martin Leung
last thing. You can never get open if you don't want to." > > On Fri, 2 Apr 2004, Martin Leung wrote: > > > Hi, > > > > Oberthur has its own development kit which has Cardlet converter, loader and > > an APDU scripter. However, you still require Sun's Jav

Re: [Muscle] development environment for Oberthur JavaCard?

2004-04-01 Thread Martin Leung
Hi, Oberthur has its own development kit which has Cardlet converter, loader and an APDU scripter. However, you still require Sun's JavaCard DK to link your Cardlet. Rgds. Martin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 02, 2004 5:38 AM

Re: [Muscle] Sun PKCS 11 (jdk 1.5) and Muscle

2004-03-08 Thread Martin Leung
Hi, You may want to try out this: https://jce.iaik.at/download/evaluation/index.php#PKCS11Wrapper Rgds. Martin Christian Schneider wrote: Hi, I just found this documentation on the new pkcs#11 implementation from sun. They say you can access smartcard pkcs#11 tokens with it. http://java.sun.c

Re: [Muscle] PCSC Lite For Windows

2003-09-24 Thread Martin Leung
Hi Gambin, You may want to try out the attached patches. In addition, get the winscard.h from MS Platform SDK and pthreadVC.lib from redhat. There is a change in thread_generic.h that I am not sure: //#ifdef win32 #if 0 #define PCSCLITE_THREAD_THANDLE #define PCSCLITE_MUTEX

Re: [Muscle] problem building pcsc-lite-1.1.2beta5 on Solaris 2.8

2003-08-17 Thread Martin Leung
error: can not run build/config.sub Rgds. Martin Toni Andjelkovic wrote: On Sat, Aug 16 2003 (17:26:33 +0800), Martin Leung wrote: 1. tokenparser.c and configfile.c assumed , though, config.h has HAVE_STDINT_H undefined. Is stdint.h a must? This error has been fixed in the CVS version of

[Muscle] problem building pcsc-lite-1.1.2beta5 on Solaris 2.8

2003-08-16 Thread Martin Leung
Hi, I have some problems on building pcsc-lite-1.1.2beta5: 1. tokenparser.c and configfile.c assumed , though, config.h has HAVE_STDINT_H undefined. Is stdint.h a must? 2. Removed stdint.h from the above files got them compiled. Then I got the following error: gcc -DHAVE_CONFIG_H -I. -I. -I..

[Muscle] Compiling musclecard.dll

2003-03-27 Thread Martin Leung
Hi, I tried to compile musclecard.dll on Win32 from the pcsc-lite 1.1.1 source and encountered the following missing symbols: tokenfactory.obj : error LNK2001: unresolved external symbol _DYN_LoadLibrary tokenfactory.obj : error LNK2001: unresolved external symbol _DYN_CloseLibrary tokenfactory.o

[Muscle] csr creation problem on Netscape 4.x

2003-03-06 Thread Martin Leung
Hi, In some installation of musclecard, I failed to perform cert. req. through using musclecard pkcs11 module. The problem is Netscape called C_VerifyInit and failed. For those successed setup, C_VerifyInit was never get called. I think Netscape was using its internal PKCS11 module in those cases.