OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
RE: [Muscle] SCARD_CTL_CODE question.

From: Naveen Mukkelli (Naveenworldsmart.com.au)
Date: Thu Apr 21 2005 - 02:44:44 CDT


-----Original Message-----
From: muscle-bounceslists.musclecard.com
[mailto:muscle-bounceslists.musclecard.com] On Behalf Of Martin Paljak
Sent: Thursday, 21 April 2005 4:27 PM
To: MUSCLE
Subject: Re: [Muscle] SCARD_CTL_CODE question.

On 4/21/05, Naveen Mukkelli <Naveenworldsmart.com.au> wrote:
> Currently I'm using the following definition for the SCARD_CTL_CODE
macro
> #define SCARD_CTL_CODE(code) (0x42000000 + (code))
> #define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE
> SCARD_CTL_CODE(1)
.....
> rv = SCardControl(hCard, 0x42000001, bSendBuffer, 1, bRecvBuffer,
> sizeof(bRecvBuffer), &length); (Sample code given in the pc/sc doc).
....

>So why don't you use the given macro in the first place?
Is the macro, SCARD_CTL_CODE(code) (0x42000000 + (code)), default macro?
If not, could you please let me know where I can find the default macro
definition?

>First, you have to enable the IFD_EXCHANGE feature in Info.plist under
>ifdDriverOptions key

<key>ifdDriverOptions</key>
        <string>0x0001</string> **I have changed from 0x0000 to 0x0001
**

        <!-- Possible values for ifdDriverOptions
        1: DRIVER_OPTION_CCID_EXCHANGE_AUTHORIZED
                the CCID Exchange command is allowed. You can use it
through
                SCardControl(hCard, IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE,
...)

Is this correct.

>42 is the base of all control codes, the actual codes are different.
>The whole scheme is ifdhandler dependant and works only together with
>CCID ifdhandler and only when you have a specific reader.

Can we use SCardControl with GemPC410 at all. If so how we can make
SCardControl to work with GemPC410 card reader.

>What do you refer to by control codes? What are you tring to do?
I'm sorry for this imprecise information; this terminology is very new
to me as I'm in still in learning stage. Actually, I mean
"SCARD_CTL_CODE".
 
>
> Another question is, How I can detect SAM which is present in the
Cherry
> keyboard.
What is SAM ? Secure Authentication Method ? depends on how the
keyboard implements it.

It is Secure Access Module chip, this will be inserted into one of the 4
slots provided on the back side of the Cherry keyboard.
How can we detect this SAM chip?

Kindly let me know.

Cheers,

Naveen

--
Martin Paljak
martin.paljakgmail.com
http://martin.paljak.pri.ee/
+372.5156495 - phone

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle