Re: [opensc-devel] Re: PINPad Kobil advanced

2006-08-16 Thread Wolfgang Glas
Am Mittwoch, 16. August 2006 08:47 schrieb Martin Paljak:
> On 15.08.2006, at 22:57, Nils Larsch wrote:
> > btw: is there a reason why the pinpad stuff in reader-pcsc.c is
> > disabled
> > by default ?
>
> As it was/is somewhat experimental. Also note, that it's not disabled
> by default in the code, but in the configuration file. Compilation in
> reader-pcsc.c depends on a proper version of pcsc-lite or (as of
> today) the windows implementation. It can not work on macosx for
> example.
>
> I still prefer to keep the default configuration file option disabled
> by default.

I would prefer to have the PINpad code enabled, because we have a Reiner 
cyberjack reader and this reader is working well with the ctapi-driver from 
the manufacturer. I never had success with the pcsc-driver for this reader 
(pcsc-lite 1.3.1 and Win32 PCSC). Looking at the lines 35-41 of reader-pcsc.c 
I now know, why:

***
#ifdef HAVE_READER_H
#include 
#ifdef HOST_TO_CCID_32
#define PINPAD_ENABLED
#endif
#endif
***

There are two Pbs with this code snippet:

a) It never gets activated under Win32.

b) My reader.h resides in PCSC/reader.h

If the pinpad code is working with current pcsc-lite releases (1.3.x) and 
Win32, we should change these lines to sth. like
***
#ifdef _WIN32
# define PINPAD_ENABLED
#else
# ifdef HAVE_READER_H
#  ifdef PCSC_INCLUDES_IN_PCSC
#   include 
#  else
#   include 
#  endif
# ifdef HOST_TO_CCID_32
#  define PINPAD_ENABLED
# endif
#endif
***
or maybe simpler
***
#ifdef _WIN32
# define PINPAD_ENABLED
#else
# if defined (HAVE_READER_H) && ! defined(HAVE_PCSC_OLD)
#  define PINPAD_ENABLED
# endif
#endif
***

  Wolfgang
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: [opensc-devel] Re: PINPad Kobil advanced

2006-08-16 Thread Martin Paljak


On 16.08.2006, at 11:27, Wolfgang Glas wrote:


***
#ifdef _WIN32
# define PINPAD_ENABLED
#else
# ifdef HAVE_READER_H
#  ifdef PCSC_INCLUDES_IN_PCSC
#   include 
#  else
#   include 
#  endif
# ifdef HOST_TO_CCID_32
#  define PINPAD_ENABLED
# endif
#endif
***



This needs attention. Besides that, please wait until i commit the  
code later today (there was no support for windows before)


m.
--
Martin Paljak / [EMAIL PROTECTED]
martin.paljak.pri.ee / ideelabor.ee
+372 515 64 95


___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: Re: [opensc-devel] Re: PINPad Kobil advanced

2006-08-16 Thread Martin Paljak

On 8/16/06, Wolfgang Glas <[EMAIL PROTECTED]> wrote:

(pcsc-lite 1.3.1 and Win32 PCSC). Looking at the lines 35-41 of reader-pcsc.c


As of r3007 it should also work on Windows. I hope it was documented
before somewhere, but the code was experimental and implemented upon
the Linux stack of drivers (Thus no support for windows)


b) My reader.h resides in PCSC/reader.h


IIRC the PCSC/ thing was removed in the version taht added support for
the given standard (1.2.9betaX). So pkg-config should take care ofthe
PCSC/ prefix.

m.

--
Martin Paljak
[EMAIL PROTECTED]
http://martin.paljak.pri.ee/
+372.515.6495 - phone
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: [opensc-devel] DLL installation in SCB.

2006-08-16 Thread Douglas E. Engert



Andreas Jellinghaus wrote:



Douglas, you experimented with the ID Ally CSP and got it
working with opensc, right? If so, could you tell me:
a) the CSP documentation states that not only the CSP but also
   all dll's used by the CSP need to be signed by microsoft. I think
   that is wrong, and our DLLs - OpenSC-pkcs11.dll, libopensc.dll,
   libltdl.dll, openssl.dll etc. - are all unsigned and it still works.
   Can you confirm this?
b) do you know of any way to get the ID Ally CSP to work without our
   libraries installed in system32? if we can get an CSP to work without
   (and putty, mozilla thunderbird and firefox still work too), we might
   change our installation stuff to only install them in some program
   directory.



I can do part of this. I can take pkcs11-spy.dll, and opensc-pkcs11.dll
out of Win32, and change the registry where needed to point at
c:\Program Files\smart card bundle\ for these and it it works.

But as soon as I take opensc.dll out it does not. Spy fails when trying
to load opensc-pkcs11.dll.  I would suspect that Windows
is trying to load the additional dlls needed by opensc-pkcs11.dll and it
will not use the directory in which the opensc-pkcs11.dll was found.
See:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic-link_library_search_order.asp

It might be possible to use the LoadLibraryEx with alternalte search order
from Spy to pass in the path. But if you don't use Spy, then
the IDAlly would be calling the LoadLibrary not LoadLibraryEx
and this would not work.


--

 Douglas E. Engert  <[EMAIL PROTECTED]>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel