Hi,
On Mon, 25 Jul 2005, Ludovic Rousseau wrote:
On 20/07/05, Mohacsi Janos <mohacsi@xxxxxxx> wrote:
winscard.c:123:SCardConnect() Attempting Connect to E-Gate 00 00 using
protocol:
3
prothandler.c:105:PHSetProtocol() Protocol T=1 requested but unsupported
by the
card
That part is strange. It may be a bug in pcsc-lite.
What version of pcsc-lite are you using? Try version 1.2.9-beta7 if
you used an older version.
If that still fails use "./configure --enable-debugatr" to get some
more interesting debug.
Bye,
I recompiled pcsc-lite-1.2.9-beta7 as you instructed.
The output is the following:
root@scone# ./pcscd -a -d -f
pcscdaemon.c:242:main() pcscd set to foreground with debug send to stderr
pcscdaemon.c:446:main() pcsc-lite 1.2.9-beta7 daemon ready.
hotplug_libusb.c:371:HPAddHotPluggable() Adding USB device:
/dev/usb1:/dev/ugen0
readerfactory.c:1066:RFInitializeReader() Attempting startup of E-Gate 00
00.
readerfactory.c:908:RFBindFunctions() Loading IFD Handler 2.0
eventhandler.c:257:EHStatusHandlerThread() Error powering up card.
I also compiled the ifdhandler with DEBUG the output is the following:
Jul 28 17:59:27 scone pcscd: ifdhandler.c 30 IFDHCreateChannel
Jul 28 17:59:27 scone pcscd: ifdhandler.c 238 IFDHICCPresence: Lun 0
Jul 28 17:59:27 scone pcscd: ifdhandler.c 74 IFDHGetCapabilities: Lun 0,
Tag fae
Jul 28 17:59:27 scone pcscd: ifdhandler.c 238 IFDHICCPresence: Lun 0
Jul 28 17:59:27 scone pcscd: ifdhandler.c 238 IFDHICCPresence: Lun 0
Jul 28 17:59:27 scone pcscd: ifdhandler.c 166 IFDHPowerICC: Lun 0, Action
500
Jul 28 17:59:27 scone pcscd: egate_reset
Jul 28 17:59:27 scone pcscd: egate_atr
Jul 28 17:59:57 scone pcscd: ifdhandler.c 185 IFDHPowerICC: power up
failed
Jul 28 17:59:57 scone pcscd: ifdhandler.c 238 IFDHICCPresence: Lun 0
Jul 28 18:00:28 scone last message repeated 77 times
The egate_reset and egate_atr is my modification to see, whether
ifdhandler compiled properly. I used ifdhanlder from
http://secure.netroedge.com/~phil/egate/
It seems, that pcscd not able to power up the card...
Any other hints... ?
Janos Mohacsi
Network Engineer, Research Associate
NIIF/HUNGARNET, HUNGARY
Key 00F9AF98: 8645 1312 D249 471B DBAE 21A2 9F52 0D1F 00F9 AF98
Thread at a glance:
Previous Message by Date:
click to view message preview
opensc on mac osx
hi all,
i 'd like to get opensc working on mac osx 10.3.9 because i want use an
eToken aladdin pro 4254 with an openvpn client for mac os x (gui
called called tunnelblick www.tunnelblick.net)
openvpn works just fine with certificate stored on filesysten, now it
should work with eToken, and i think opensc would be the only thing to
get work with it.
has anyone some experience with it?
is it possible?
is there any ready-compiled osx-packages/binaries (pkg) of opensc
aviable??
(i haven't found any package in fink)
so, i tried to download these source-code and compiled it as described
at http://www.opensc.org/opensc/wiki/MacOsX
libusb-0.1.10a.tar.gz
opensc-0.9.6.tar.gz
my environment:
Mac OS X 10.3.9 (7W98)
Darwin 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005;
root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1640)
config-informations:
OpenSC has been configured with the following options
Version:
User binaries: /opt/smartcard/bin
Configuration files: /etc
Host: powerpc-apple-darwin7.9.0
Compiler: gcc
Compiler flags: -Wall -fno-strict-aliasing -g -O2 -no-cpp-precomp
Preprocessor flags: -I${top_builddir}/src/include
Linker flags:
Libraries: -Wl,-framework,CoreFoundation
Random number collection: device (/dev/urandom)
OpenSSL support: yes
with engine: yes
with sslhack: no
PC/SC support: yes
OpenCT support: no
Assuan support: no
LDAP support: yes
PAM support: yes
---
following error occurred:
libusb-0.1.10a
make
.
..
...
creating libusb.la
(cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)
if /bin/sh ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -g -O2
-MT usbpp.lo -MD -MP -MF ".deps/usbpp.Tpo" -c -o usbpp.lo usbpp.cpp; \
then mv -f ".deps/usbpp.Tpo" ".deps/usbpp.Plo"; else rm -f
".deps/usbpp.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -g -O2 -MT usbpp.lo -MD -MP -MF
.deps/usbpp.Tpo -c usbpp.cpp -fno-common -DPIC -o .libs/usbpp.o
g++ -DHAVE_CONFIG_H -I. -g -O2 -MT usbpp.lo -MD -MP -MF
.deps/usbpp.Tpo -c usbpp.cpp -o usbpp.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link g++ -g -O2 -o libusbpp.la -rpath
/opt/smartcard/lib -version-info 8:2:4 -release 0.1 -export-dynamic
-framework IOKit -framework CoreFoundation -lusb usbpp.lo
g++ -dynamiclib -single_module -flat_namespace -undefined suppress -o
.libs/libusbpp-0.1.4.4.2.dylib .libs/usbpp.o -lusb -install_name
/opt/smartcard/lib/libusbpp-0.1.4.dylib -compatibility_version 9
-current_version 9.2
/usr/bin/libtool: can't locate file for: -lusb
/usr/bin/libtool: file: -lusb is not an object file (not allowed in a
library)
make[2]: *** [libusbpp.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
---
opensc-0.9.6
make
.
..
...
creating libscldap.la
sed: support/opensc-0.9.6/src/scconf/libscconf.la: No such file or
directory
libtool: link: `support/opensc-0.9.6/src/scconf/libscconf.la' is not a
valid libtool archive
make[3]: *** [libscldap.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
thanks for any help,
andi
Next Message by Date:
click to view message preview
SCB 0.4 : QuickStar - fail to load profile problem
Hi,
After installing SCB 0.4, I followed the instructions of QuickStar:
http://www.opensc.org/scb/wiki/QuickStart
In the step 2:
initialize a (blank!) card: pkcs15-init --create-pkcs15 --use-default-transport-keys --profile pkcs15+onepin-----------------------------------------------------------------------------------
I tried:
C:\Smart card bundle>pkcs15-init --create-pkcs15 --use-default-transport-keys --profile pkcs15+onepinFailed to load profile: File not foundbut always got error message above. (Failed to load profile: File not found)
Could anyone kindly give help or advise me? Thank you very much!
Best Regards,
Jim Lou
loujiing@xxxxxxxxxxx
Previous Message by Thread:
click to view message preview
Re: FreeBSD with Schlumberger E-Gate
On 20/07/05, Mohacsi Janos <mohacsi@xxxxxxx> wrote:
> winscard.c:123:SCardConnect() Attempting Connect to E-Gate 00 00 using
> protocol:
> 3
> prothandler.c:105:PHSetProtocol() Protocol T=1 requested but unsupported
> by the
> card
That part is strange. It may be a bug in pcsc-lite.
What version of pcsc-lite are you using? Try version 1.2.9-beta7 if
you used an older version.
If that still fails use "./configure --enable-debugatr" to get some
more interesting debug.
Bye,
--
Dr. Ludovic Rousseau
For private mail use ludovic.rousseau@xxxxxxx and not "big brother" Google
Next Message by Thread:
click to view message preview
Re: FreeBSD with Schlumberger E-Gate [u]
chaskiel, have you even seen errors like this with egate?
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control:
USB_DO_REQUEST failed: -1
does that point to a problem inside the freebsd kernel?
Janos, did the kernel give you any error message?
opensc+openct support egate + cryptoflex 32k well, I use it
all the time and have never seen anything like this. but
I and all the other happy users so far are linux+windows
only, so this might be a bsd problem.
it woule be great if we could track this down. freebsd
might have issues in usb stack, earlier someone reported
a kernel panic when he unplugged his usb token, see mailing
list archive for details.
if compiling without libusb or anything else help, it would
be nice to update the bsd section in this wiki page:
http://www.opensc.org/openct/wiki/OperatingSystems
to give other users a helping hand.
Thanks, Andreas
On Thursday 14 July 2005 14:34, Mohacsi Janos wrote:
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_usb_control: recv 3b 95 18 40
ff 62 01 02 01 04
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_protocol_select: atr= 3b 95 18
40 ff 62 01 02 01 04
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_protocol_select: default T=0,
supported protocols=0x1
> Jul 14 14:16:05 scone ifdhandler[28021]: eg_set_protocol: proto=0
> Jul 14 14:16:05 scone ifdhandler[28021]: ifdhandler_process:
ifdhandler_process(cmd=CT_CMD_LOCK, unit=0)
> Jul 14 14:16:05 scone ifdhandler[28021]: ifdhandler_lock: granted excl lock
1 for slot 0 by uid=4294967294
> Jul 14 14:16:05 scone ifdhandler[28021]: ifdhandler_process:
ifdhandler_process(cmd=CT_CMD_TRANSACT, unit=0)
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_protocol_transceive: cmd: c0
a4 00 00 02 3f 00
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD:
ifd_sysdep_usb_control(0xa0)
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD: CTRL
bmRequestType 0xc0 bRequest 0xa0 wValue 0x0 wIndex 0x0 wLength 0x1
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD: CTRL
SEND data 00
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD: CTRL
RECV data 00
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_usb_control: usb req type=xc0
req=xa0 val=x0000 ind=x0000 len=1
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_usb_control: recv 00
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_usb_control: usb req type=x40
req=x80 val=x0000 ind=x0000 len=5
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_usb_control: send c0 a4 00 00
02
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD:
ifd_sysdep_usb_control(0x80)
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD: CTRL
bmRequestType 0x40 bRequest 0x80 wValue 0x0 wIndex 0x0 wLength 0x5
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control: BSD: CTRL
SEND data c0 a4 00 00 02
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_sysdep_usb_control:
USB_DO_REQUEST failed: -1
> Jul 14 14:16:05 scone ifdhandler[28021]: ifd_protocol_transceive: transceive
error: Communication error
> Jul 14 14:16:05 scone ifdhandler[28021]: ifdhandler_unlock_all: released
excl lock 1 for slot 0 by uid=4294967294