OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Marcus Oestreicher (oeszurich.ibm.com)
Date: Thu Jan 03 2002 - 11:30:26 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Ok, I just checked with my installation, jpcsc version 0.3, and two readers,
    and I get two reader names back from jcpsc.

    Can you check your jpcsc version and eventually download the newer one
    from linuxnet.com ? And can you let me know whether it works ?

    ciao
    Marcus
     
     
    Pauley, John writes:
    > Hello,
    > I'm having issues with the Context class ListReaders method. It appears
    > that no matter how many readers have been registered with pc/sc, ListReaders
    > only returns the first reader. For example, there are 3 readers registered
    > with pc/sc, but in the following code snippet, c.ListReaders() returns an
    > array of one string, that string being the first registered reader:
    >
    > Context c = Context.c;
    > String[] sa = c.ListReaders();
    > for(int i=0;i<sa.length;i++){
    > System.out.println("Reader["+ i + "] = " + sa[i]);
    > }
    >
    > I looked at Context.c, but saw nothing that looked out of the ordinary, but
    > I am not too familiar with jni. Any comments or suggestions?
    >
    > Thanks,
    > John
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    > <HTML>
    > <HEAD>
    > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    > <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
    > <TITLE>jpcsc</TITLE>
    > </HEAD>
    > <BODY>
    >
    > <P><FONT SIZE=2>Hello,</FONT>
    > <BR><FONT SIZE=2>I'm having issues with the Context class ListReaders method.&nbsp; It appears that no matter how many readers have been registered with pc/sc, ListReaders only returns the first reader.&nbsp; For example, there are 3 readers registered with pc/sc, but in the following code snippet, c.ListReaders() returns an array of one string, that string being the first registered reader:</FONT></P>
    >
    > <P><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Context&nbsp;&nbsp;&nbsp;&nbsp; c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Context.c;</FONT>
    > <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String[]&nbsp;&nbsp;&nbsp; sa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = c.ListReaders();</FONT>
    > <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(int i=0;i&lt;sa.length;i++){</FONT>
    > <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;Reader[&quot;+ i + &quot;] = &quot; + sa[i]);</FONT>
    > <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>
    > </P>
    >
    > <P><FONT SIZE=2>I looked at Context.c, but saw nothing that looked out of the ordinary, but I am not too familiar with jni.&nbsp; Any comments or suggestions?</FONT></P>
    >
    > <P><FONT SIZE=2>Thanks,</FONT>
    > <BR><FONT SIZE=2>John</FONT>
    > </P>
    >
    > </BODY>
    > </HTML>

    ***************************************************************
    Unix Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/
    To unsubscribe send an email to majordomolinuxnet.com with
    unsubscribe sclinux
    ***************************************************************