Reformat
4 lines of code changed in 1 file:
InitializeSocket(): do not set the execution bit on the socket file. It
is useless.
1 lines of code changed in 1 file:
svn propset svn:keywords 'Author Date Id Revision'
4 lines of code changed in 4 files:
GetDaemonPid(): use open(3) instead of fopen(3) to avoid an internal
malloc() call and gain some CPU cycles
5 lines of code changed in 1 file:
HPAddDevice(): wait 1 millisecond instead of 1 second until the device
is visible to libusb/etc.
1 lines of code changed in 1 file:
Doxygen: SCardCheckDaemonAvailability() do not invalidate handles after
a fork() any more
3 lines of code changed in 1 file:
HPReadBundleValues(): use the new Info.plist parsing API.
Parsing the CCID Info.plist (159 readers supported) was on a ARM9
machine 13193049 �s and is now 258262 �s => gain x51 or 5008%
50 lines of code changed in 1 file:
RFBindFunctions(): rename rv in rvl to avoid warnings
warning: declaration of �rv� shadows a previous local
Also change type from DWORD to int since DYN_GetAddress() returns an int
6 lines of code changed in 1 file:
RFLoadReader(): optimize the detection of Ifd Handler version by
checking for "IFDHCreateChannelByName", "IFDHCreateChannel" and then
"IO_Create_Channel" instead of the 3 symbols at once.
Also suppress the error message suppression. Ifd handler v2 or v1 will
display one or two errors for symbols not found.
24 lines of code changed in 1 file:
HPReadBundleValues(): duplicate the readerName and CFBundleName strings
since the originals are destroyed by bundleRelease() later
The reader names were corrupted.
2 lines of code changed in 1 file:
Fix typo
1 lines of code changed in 1 file:
HPReadBundleValues(): use the new Info.plist parsing API.
Parsing the CCID Info.plist (159 readers supported) was on a i386
machine 264306 �s and is now 5547 �s => gain x47 or 4600%
54 lines of code changed in 1 file:
parse the Info.plist file only once and generate a list of key/values
147 lines of code changed in 2 files:
HPSearchHotPluggables(): create the synchronisation pipe only if the
HPEstablishUSBNotifications thread is created.
Avoids to leak resources.
9 lines of code changed in 1 file:
HPSearchHotPluggables(): wait for initial readers to setup only if
HPEstablishUSBNotifications is created. Otherwise the process is
blocked for ever.
5 lines of code changed in 1 file:
HPRegisterForHotplugEvents(): having no bundle for USB readers is not an
error. USB support/hotplug is just disabled.
1 lines of code changed in 1 file:
main(): Log a message if HPRegisterForHotplugEvents() fails
3 lines of code changed in 1 file:
Do not hardcode the libusb-1.0 include header path (remove the
libusb-1.0/ part)
1 lines of code changed in 1 file:
Do not hardcode the libusb.h path.
See Debian bug #591782
ccid: FTBFS on kfreebsd-*: configure: error: libusb.h not found
1 lines of code changed in 1 file:
add --sysconfdir=/etc
1 lines of code changed in 1 file:
Do not allow restricting defaults values of --max-thread,
--max-card-handle-per-thread or --max-card-handle-per-reader when
restricted
6 lines of code changed in 1 file:
Do not allow APDU logging when restricted
5 lines of code changed in 1 file:
If the process is setuid or setgid it may have some restrictions
Do not allow to specify a configuration file when restricted
9 lines of code changed in 1 file:
release 1.6.4
9 lines of code changed in 2 files:
Do not use sysconfdir as configuration directory but
${sysconfdir}/reader.conf.d instead.
Use --enable-confdir=DIR if you want to set a specific value without the
reader.conf.d appended.
Thanks to Kalev Lember for the bug report
http://archives.neohapsis.com/archives/dev/muscle/2010-q3/0150.html
8 lines of code changed in 1 file:
release 1.6.3
12 lines of code changed in 2 files:
Define LPSCARD_READERSTATE since this is used in the MSDN prototype.
Use LPSCARD_READERSTATE in winscard.h instead of (SCARD_READERSTATE *)
to mimic the MSDN API.
This partly reverts changeset 5096
2 lines of code changed in 2 files:
Also call SCardDisconnect() and SCardReleaseContext() in the forked
process
27 lines of code changed in 1 file:
ContextThread(): goto exit if MSGCheckHandleAssociation() fails instead
of just returning no error.
Something wrong happened on the client side (like a fork) and the client
needs to call SCardEstablishContext() to create a new connection.
44 lines of code changed in 1 file:
ContextThread(): fix goto label when it _is_ an overflow
2 lines of code changed in 1 file:
ContextThread(): fix goto label when it is not an overflow
1 lines of code changed in 1 file:
Revert changeset 5102 to add profiling on the client side again.
ltrace(1) can't be used with a dynamically loaded (dlopen(3)) library like
it is the case with the majority of PKCS#11 client application.
172 lines of code changed in 1 file:
Reset mid field when the list is empty to avoid assert() errors
6 lines of code changed in 1 file:
MSGCheckHandleAssociation(): check that the context handle is still
valid. Calling a PC/SC function after SCardReleaseContext() is not
supported.
9 lines of code changed in 1 file:
Fix typo in comment
1 lines of code changed in 1 file:
remove debug line
0 lines of code changed in 1 file:
"/reader.conf.d" is only appended to sysconfdir if no value of
sysconfdir is provided
Thanks to Patrice Angelini for the bug report
12 lines of code changed in 1 file:
HPAddHotPluggable(): do not use libusb_strerror() since it is not yet
available in current stable libusb (1.0.8)
3 lines of code changed in 1 file:
Fix compilation warnings
ifdwrapper.c:166:7: warning: "IFDHANDLERv2" is not defined
ifdwrapper.c:589:7: warning: "IFDHANDLERv2" is not defined
ifdwrapper.c:640:7: warning: "IFDHANDLERv3" is not defined
3 lines of code changed in 1 file:
Check that either IFDHANDLERv1, IFDHANDLERv2 or IFDHANDLERv3 is
defined if PCSCLITE_STATIC_DRIVER is used
8 lines of code changed in 1 file:
No need to use -D_REENTRANT. It was needed for LinuxThreads but we do
not use LinuxThreads since a long time.
See Debian bug #475101 "Remove obsolete -D_REENTRANT requirement"
0 lines of code changed in 1 file:
release 1.6.2
23 lines of code changed in 2 files:
Remove useless $(COREFOUNDATION) from libpcsclite_la_LIBADD
The library has no Mac OS X specific code.
1 lines of code changed in 1 file:
Remove undefined $(LIBSMARTCARD) from libpcsclite_la_LIBADD
1 lines of code changed in 1 file:
libpcsclite does not use dlopen() so no need to link with $(LIBDL)
1 lines of code changed in 1 file:
Remove client side profiling since we can use ltrace(1) with better
results
0 lines of code changed in 1 file:
Remove 2 debug traces
0 lines of code changed in 1 file:
Use "SCARD_IO_REQUEST *" instead of LPSCARD_IO_REQUEST
and "const SCARD_IO_REQUEST *" instead of "LPCSCARD_IO_REQUEST
Should make the code more easy to read
6 lines of code changed in 3 files:
Use SCARD_READERSTATE instead of SCARD_READERSTATE_A
Remove definitions of SCARD_READERSTATE_A PSCARD_READERSTATE_A and
LPSCARD_READERSTATE_A types
9 lines of code changed in 7 files:
Use $libdir instead of $prefix/lib to set the default value of usbdropdir
" Fedora uses /usr/lib on 32 bit and /usr/lib64 on 64 bit multilib
platforms. "
Thanks to Kalev Lember for the idea.
http://archives.neohapsis.com/archives/dev/muscle/2010-q3/0108.html
5 lines of code changed in 1 file:
sysconfdir=/etc by default if prefix=/usr so remove the --sysconfdir line
0 lines of code changed in 1 file:
Do not duplicate the reader index to avoids problems when I want to
change it.
22 lines of code changed in 6 files:
Set sysconfdir to /etc if prefix=/usr
You should have a default working configuration only with --prefix=/usr
7 lines of code changed in 1 file: