martin
de89aa47e7
Fixes #109
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3600 c6295689-39f2-0310-b995-f0e70906c6a9
2008-12-06 11:41:00 +00:00
martin
f4c85e7502
Cosmetic fix for [3595]
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3599 c6295689-39f2-0310-b995-f0e70906c6a9
2008-12-05 15:57:51 +00:00
martin
94d0f8d835
Remove ancient unused code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3598 c6295689-39f2-0310-b995-f0e70906c6a9
2008-12-05 15:53:31 +00:00
martin
a7967258aa
DWIM: If you don't specify a reader on the command line and you have more than one reader (for example, OpenCT virtual readers and one existing PC/SC reader) the tools will skip to the first reader that has a card in it.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3597 c6295689-39f2-0310-b995-f0e70906c6a9
2008-12-05 15:48:49 +00:00
ludovic.rousseau
6f3012d959
add CKM_SHA256* and CKM_SHA384* logs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3596 c6295689-39f2-0310-b995-f0e70906c6a9
2008-11-27 10:44:57 +00:00
martin
1e41d4d267
* Fix issues with pkcs11-tool testing of C_GenerateRandom/C_SeedRandom and OpenSC PKCS#11 implementation of those functions.
...
Thanks goes to Rickard Bondesson who noticed the issues.
http://www.opensc-project.org/pipermail/opensc-devel/2008-November/011436.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3595 c6295689-39f2-0310-b995-f0e70906c6a9
2008-11-24 22:06:27 +00:00
martin
36112bf6e0
typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3594 c6295689-39f2-0310-b995-f0e70906c6a9
2008-11-24 21:55:28 +00:00
martin
7b93c51230
Missing SHAs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3593 c6295689-39f2-0310-b995-f0e70906c6a9
2008-11-24 21:53:56 +00:00
martin
04b30cdac3
Add --list-token-slots / -T to pkcs11-tool to list only slots with tokens.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3592 c6295689-39f2-0310-b995-f0e70906c6a9
2008-11-21 22:34:31 +00:00
alonbl
bb6f6f7952
mingw32->mingw*
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3591 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-27 19:17:36 +00:00
alonbl
d7941bf850
Re-add pcsc-lite compile-time dependency
...
Win64 changed the SCARDCONTEXT from LONG to ULONG_PTR,
pcsc-lite did not follow this on 64bit platforms.
This breaks the pcsc module.
To solve this we use installed winscard.h in order to get proper
declerations.
As mingw32 does not have winscard.h we keep current types. mingw64 and
pcsc-lite system have winscard.h.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3590 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-27 19:16:28 +00:00
alonbl
4ad85b3d91
Add some more debug information to pcsc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3589 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-26 19:13:14 +00:00
alonbl
d771870d5c
Resolve some conflict with win64
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3588 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-26 14:48:47 +00:00
ludovic.rousseau
d2f428590b
use 0x%08lx instead of 0x08%lx
...
Thanks to Alon Bar-Lev for the patch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3587 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-20 15:04:29 +00:00
ludovic.rousseau
4a1e1192a6
display PC/SC error codes as 0x08%lx instead of %lx to make it explicit
...
they are hex values
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3586 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-20 07:46:24 +00:00
ludovic.rousseau
b4c5c8d539
use SCARD_S_SUCCESS instead of 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3585 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-20 07:27:41 +00:00
ludovic.rousseau
1e5cd2466e
Add documentation:
...
# (max_virtual_slots/num_slots) limits the number of readers
# that can be used on the system. Default is then 8/4=2 readers.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3584 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-10 09:42:36 +00:00
ludovic.rousseau
6b89748111
slot_get_token(): return CKR_TOKEN_NOT_PRESENT if CKF_TOKEN_PRESENT is
...
not set.
Thanks to Douglas E. Engert for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-October/011361.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3583 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-10 09:39:27 +00:00
ludovic.rousseau
001f03f18d
card_removed(): warning: comparison between signed and unsigned
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3582 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-09 13:05:13 +00:00
ludovic.rousseau
6eb3ecd107
card_initialize(): correctly associate a reader to each virtual slot.
...
Thanks to Douglas E. Engert for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-October/011359.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3581 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-09 12:59:02 +00:00
ludovic.rousseau
e2b329e7c9
make the * targets depend on only one dependency to avoid problems on
...
concurrent make (-j)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3580 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-09 09:02:42 +00:00
ludovic.rousseau
ac8bb831c4
remove html.out and man.out before filling them to avoid problems
...
when/if they already contain a html.tmp or man.tmp file (on the 3rd
execution of make)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3579 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-09 08:35:32 +00:00
ludovic.rousseau
f640522270
cardos-info is now cardos-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3578 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-09 08:32:14 +00:00
alonbl
df74ebcdc0
Handle spaces correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3577 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-04 19:52:56 +00:00
alonbl
acb06323aa
Make src/tools/cardos-info.bat DOS format
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3576 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-04 19:35:16 +00:00
alonbl
2659c00f0d
Make src/tools/cardos-info.bat DOS format
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3575 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-04 19:33:31 +00:00
alonbl
3508110177
Fixup cardos-info scripts
...
1. They are not binaries.
2. No need for resources.
3. Put in separate files.
Anyway, do we actually need these? why not just document
that cardos-tool should be used instead?
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3574 c6295689-39f2-0310-b995-f0e70906c6a9
2008-10-04 19:32:05 +00:00
aj
a767600ee8
fix apdu length check: 0..3 is wrong (too short). 4 is ok.
...
5 is not (length byte for data, but no data?). 6 or more is ok
(length byte and data). checking for "5" is not important.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3573 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 14:36:46 +00:00
jps
042d9d06a5
An erased CardOS with a StartKey version 0xFF can now be directly formatted.
...
Verbose output contains now some useful data.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3572 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 14:21:01 +00:00
jps
8136c8b40f
fix some bad crash on Mac
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3571 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 10:38:34 +00:00
jps
524672345b
CardOS 4.2C is working too after changing Default StartKey to 16 * 0xFF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3570 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 09:47:43 +00:00
jps
e0d1bb5410
fixing typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3569 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 08:35:54 +00:00
aj
aee10c8a13
Fix a comment and allow cardos 4.3B too.
...
Thanks to JP for testing.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3568 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-22 07:01:34 +00:00
aj
cbf0c28d63
fix a few missing \n
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3567 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-19 10:21:14 +00:00
aj
5c29dcdb94
commit changes: cardos-info is now cardos-tool.
...
and it knows to format, at least some cards/tokens with cardos.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3566 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-18 17:44:54 +00:00
aj
021dfaccba
rename files only.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3565 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-18 17:43:38 +00:00
aj
19a6ecddbf
the "-" for make must be in the first line of a multi column command,
...
not somewhere in the middle. this code makes shell look for "-rm" command
which does not exist. fixing.
"-" is not required in these cases, as "rm -f" always returns 0.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3564 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-11 11:39:47 +00:00
alonbl
ff4d6dd101
Fix for two apparent C code bugs
...
By Stanislav Brabec
entersafe_init_pin_info() was declared as int, but defined and used as
void, resulting in a function returning an unused pseudo-random value.
card-gemsafeV1.c uses comparison 'type == "DF"', which is always false,
as it compares pointer to a string with pointer to the string "DF" in
the code.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3563 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-10 12:44:40 +00:00
alonbl
c89d27f755
Don't removed generated external files during distclean
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3562 c6295689-39f2-0310-b995-f0e70906c6a9
2008-09-08 14:04:49 +00:00
aj
29ee5e116c
Update trunk for new release.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3559 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-27 06:19:36 +00:00
aj
5ce2fcdc8c
Document recent changes.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3558 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-20 15:20:23 +00:00
aj
9468d989cf
Douglas E. Engert:
...
The pkcs15-gemsafeV1.c code assumes that the key_ref is always 3. But that is
not always the case. In our case it is 4. The patch tries to determine the
key_ref by looking at what appears to be a table of allocated keys, and picking
the first allocated key.
In case this is not always true, the patch will also allow for the the
opensc.conf card flag = n to specify the key_ref as the low order 4 bits of the
flag.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3557 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-20 15:17:59 +00:00
aj
27d00f9265
Add new entersafe driver for ePass 3000 tokens.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3556 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-20 05:41:20 +00:00
aj
5ef6b5ff7d
remove check for label - if you set one with "pkcs15-init -C -l your-label"
...
this check doesn't work correctly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3555 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-12 14:48:54 +00:00
ludovic.rousseau
56ea99d8a0
print_mech_info(): replace printf by fprintf to correctly redirect the
...
log
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3554 c6295689-39f2-0310-b995-f0e70906c6a9
2008-08-12 09:51:43 +00:00
aj
07247596d6
Apply security fix.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3552 c6295689-39f2-0310-b995-f0e70906c6a9
2008-07-31 13:25:16 +00:00
aj
1b1ae308e0
update export script.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3550 c6295689-39f2-0310-b995-f0e70906c6a9
2008-07-31 12:43:44 +00:00
aj
c528205cde
and update the date.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3548 c6295689-39f2-0310-b995-f0e70906c6a9
2008-07-31 12:18:13 +00:00
aj
262a630bfb
document this change.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3547 c6295689-39f2-0310-b995-f0e70906c6a9
2008-07-31 12:17:58 +00:00
aj
e243e7f322
make the sign_with_decrypt hack configureable.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3546 c6295689-39f2-0310-b995-f0e70906c6a9
2008-07-31 12:17:29 +00:00