/[pcsclite]/tags/ccid/ccid-1.3.8/examples/scardcontrol.c
ViewVC logotype

Log of /tags/ccid/ccid-1.3.8/examples/scardcontrol.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3113 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 6 14:14:30 2008 UTC (4 years, 9 months ago) by rousseau
File length: 16593 byte(s)
Diff to previous 2974 , to selected 1691
release 1.3.8

Revision 2974 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 28 18:32:52 2008 UTC (5 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16593 byte(s)
Diff to previous 2922 , to selected 1691
update Free Software Foundation mail address

Revision 2922 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 30 12:26:45 2008 UTC (5 years, 1 month ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16598 byte(s)
Diff to previous 2653 , to selected 1691
exit if no card is present

Revision 2653 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 15 07:45:32 2007 UTC (5 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16516 byte(s)
Diff to previous 2597 , to selected 1691
use SCARD_LEAVE_CARD instead of SCARD_UNPOWER_CARD for SCardReconnect()
since SCardReconnect() returns SCARD_W_REMOVED_CARD on Mac OS X 10.4

Revision 2597 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 5 09:06:52 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16518 byte(s)
Diff to previous 2593 , to selected 1691
add support for Mac OS X

Revision 2593 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:06:41 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16434 byte(s)
Diff to previous 2592 , to selected 1691
update version and copyright date

Revision 2592 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:06:10 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16434 byte(s)
Diff to previous 2591 , to selected 1691
remove compilation warnings

Revision 2591 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:05:34 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16425 byte(s)
Diff to previous 2590 , to selected 1691
do not free() unallocated memory

Revision 2590 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:03:41 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16385 byte(s)
Diff to previous 2585 , to selected 1691
use PCSC_ERROR_EXIT() for SCardListReaders() call

Revision 2585 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:44:43 2007 UTC (5 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16418 byte(s)
Diff to previous 2422 , to selected 1691
display an explicit message when no card is present

Revision 2422 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 23 16:16:57 2007 UTC (6 years, 3 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16400 byte(s)
Diff to previous 2407 , to selected 1691
remove a redundant declaration of i
scardcontrol.c:486: attention : declaration of ā€˜i’ shadows a previous
local

Revision 2407 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 20 13:38:00 2007 UTC (6 years, 4 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16409 byte(s)
Diff to previous 2405 , to selected 1691
Secure modify PIN: add a bConfirmPIN and bNumberMessage table

Revision 2405 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 20 13:25:41 2007 UTC (6 years, 4 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16120 byte(s)
Diff to previous 2316 , to selected 1691
set max pin size to 8 instead of 4

Revision 2316 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 6 21:54:46 2007 UTC (6 years, 5 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16120 byte(s)
Diff to previous 2116 , to selected 1691
use LPSTR instead or the deprecated LPTSTR

Revision 2116 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 31 15:10:48 2006 UTC (6 years, 10 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16121 byte(s)
Diff to previous 2039 , to selected 1691
use ntohl/htonl from arpa/inet.h since the tag value for
IOCTL_FEATURE_VERIFY_PIN_DIRECT and IOCTL_FEATURE_MODIFY_PIN_DIRECT
_shall_ be encoded in big endian as documented in PCSC v2 part 10 ch 2.2
page 2.

The applications using this feature shall be updated (to respect the
PCSC specification)

Thanks to Ulrich Vogl for the bug report

Revision 2039 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 4 13:14:56 2006 UTC (7 years, 1 month ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16084 byte(s)
Diff to previous 1985 , to selected 1691
Use a timeout of 0.1 second instead of 0 for waiting characters from the
keyboard

Revision 1985 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 27 14:46:57 2006 UTC (7 years, 2 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16068 byte(s)
Diff to previous 1771 , to selected 1691
Modify PIN: use a for() loop instead of 3 fgets() since we will not read
every "PIN" if the command is aborted

Revision 1771 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 29 12:21:00 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16122 byte(s)
Diff to previous 1751 , to selected 1691
remove PCSC/ from the pcsc-lite #include header files since the PCSC/
part is already given by `pkg-config --cflags libpcsclite`

Revision 1751 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 24 16:15:30 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16132 byte(s)
Diff to previous 1750 , to selected 1691
update copyright date

Revision 1750 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 24 16:14:48 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16127 byte(s)
Diff to previous 1749 , to selected 1691
in Modify PIN command we need to read 3 lines from the keyboard (old,
new and confirm PINs)

Revision 1749 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 24 16:12:21 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15915 byte(s)
Diff to previous 1743 , to selected 1691
use a buffer of 40 instead of 10 to reader the keyboard since the PIN
may be longer than 8 digits

Revision 1743 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 24 15:32:41 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15915 byte(s)
Diff to previous 1742 , to selected 1691
my check if the applet is present was wrong

Revision 1742 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 24 15:26:41 2005 UTC (7 years, 6 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15915 byte(s)
Diff to previous 1717 , to selected 1691
exit if the test applet is not found

Revision 1717 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:22:55 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15793 byte(s)
Diff to previous 1716 , to selected 1691
Modify PIN: use a 4 digit PIN so we can test it using the test Java Card applet

Revision 1716 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:18:24 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16201 byte(s)
Diff to previous 1715 , to selected 1691
Modify PIN: bInsertionOffsetOld and bInsertionOffsetNew starts from the
APDU data (5th byte) and not the APDU start (first byte)

Revision 1715 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:14:17 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 16201 byte(s)
Diff to previous 1714 , to selected 1691
add a modify PIN dump command

Revision 1714 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:12:09 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15134 byte(s)
Diff to previous 1713 , to selected 1691
Modify PIN: add a comment for bNumberMessage

Revision 1713 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:11:10 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15095 byte(s)
Diff to previous 1712 , to selected 1691
Modify PIN: use 0x03 for bNumberMessage since the GemPC Pinpad rejects
any other valu. The SPR 532 needs 0 here

Revision 1712 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:07:13 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15095 byte(s)
Diff to previous 1711 , to selected 1691
verify PIN: use 0x01 for bNumberMessage for the GemPC Pinpad

Revision 1711 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 16 09:06:01 2005 UTC (7 years, 7 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15095 byte(s)
Diff to previous 1691
verify PIN: use 0x02 (validation key pressed) for
bEntryValidationCondition as the GemPC Pinpad rejects any other values

Revision 1691 - (view) (download) (annotate) - [selected]
Modified Wed Oct 19 06:20:54 2005 UTC (7 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 15095 byte(s)
Diff to previous 1676
declare offset, pin_verify and pin_modify variable only if needed

Revision 1676 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 26 14:43:51 2005 UTC (7 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 14987 byte(s)
Diff to previous 1669 , to selected 1691
use the new HandlerTest applet commands

Revision 1669 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 20 07:05:04 2005 UTC (7 years, 9 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 13901 byte(s)
Diff to previous 1635 , to selected 1691
use HOST_TO_CCID_16/HOST_TO_CCID_32

Revision 1635 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 1 12:38:09 2005 UTC (7 years, 9 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 13855 byte(s)
Diff to previous 1634 , to selected 1691
also work with T=1 cards

Revision 1634 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 1 12:33:06 2005 UTC (7 years, 9 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 13581 byte(s)
Diff to previous 1631 , to selected 1691
debug modify PIN test code

Revision 1631 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 1 09:13:38 2005 UTC (7 years, 9 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 12782 byte(s)
Diff to previous 1558 , to selected 1691
add sample code to perform FEATURE_VERIFY_PIN_DIRECT and
FEATURE_MODIFY_PIN_DIRECT if the reader supports it

Revision 1558 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 15 12:55:20 2005 UTC (8 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9305 byte(s)
Diff to previous 1346 , to selected 1691
remove definition of SCARD_CTL_CODE and #include <PCSC/reader.h>

Revision 1346 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 23 13:19:23 2005 UTC (8 years, 3 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9332 byte(s)
Diff to previous 1300 , to selected 1691
 #include <sys/time.h> instead of <time.h> to get correct definition of
struct timeval under Mac OS X

Revision 1300 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 9 21:27:41 2005 UTC (8 years, 5 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9328 byte(s)
Diff to previous 1290 , to selected 1691
The APDU now comes _after_ the CCID structure as described the CCID
specifications.

Revision 1290 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 20 13:57:38 2004 UTC (8 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9327 byte(s)
Diff to previous 1289 , to selected 1691
set wPINMaxExtraDigit: set max to 8 (instead of 4) to differentiate it
from min (set to 4)

Revision 1289 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 20 13:56:25 2004 UTC (8 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9327 byte(s)
Diff to previous 1263 , to selected 1691
in wPINMaxExtraDigit the bytes order is max,min and not min,max.
The comments were wrong

Revision 1263 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 3 12:52:28 2004 UTC (8 years, 8 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9327 byte(s)
Diff to previous 1067 , to selected 1691
add "THIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL!

Revision 1067 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 15 08:45:21 2004 UTC (8 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9196 byte(s)
Diff to previous 1059 , to selected 1691
allow splint to continue parsing after use of type fd_set

Revision 1059 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 14:08:28 2004 UTC (8 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9170 byte(s)
Diff to previous 1014 , to selected 1691
explicitely cast the returned value as (void) if we don't use it

Revision 1014 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 30 14:47:30 2004 UTC (8 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9164 byte(s)
Diff to previous 972 , to selected 1691
correct a signedness issue

Revision 972 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 23 14:54:44 2004 UTC (8 years, 11 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 9155 byte(s)
Diff to previous 940 , to selected 1691
- send Select DF and Select EF APDU before Verify PIN
- read stdin (consume the "*" fake keys) if the pinpad is on a keyboard

Revision 940 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 13 16:59:13 2004 UTC (9 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 7665 byte(s)
Diff to previous 903 , to selected 1691
use SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1 instead of SCARD_PROTOCOL_ANY
since it is not defined in Micosoft PC/SC

Revision 903 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 26 07:48:03 2004 UTC (9 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 7646 byte(s)
Diff to previous 900 , to selected 1691
remove useless bPINOperation

Revision 900 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 25 14:46:02 2004 UTC (9 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 7678 byte(s)
Diff to previous 892 , to selected 1691
add support for SCardGetAttrib(.., IOCTL_SMARTCARD_VENDOR_VERIFY_PIN, ..)
to know if the reader supports SCardControl(.., IOCTL_SMARTCARD_VENDOR_VERIFY_PIN, ..)

Revision 892 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 24 12:58:43 2004 UTC (9 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 7214 byte(s)
Diff to previous 889 , to selected 1691
recompile using gcc -pedantic and correct:
- some C++ syntax comments
- many signedness "problems"

Revision 889 - (view) (download) (annotate) - [select for diffs]
Added Mon May 24 09:56:16 2004 UTC (9 years ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File length: 7214 byte(s)
Diff to selected 1691
add examples for SCardControl IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
IOCTL_SMARTCARD_VENDOR_VERIFY_PIN

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.5