nils
13a3e699e5
adjust key usage bits
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2545 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-06 21:18:26 +00:00
aj
08a640c94b
users of libpcs11.c also need @LIBLTDL@ libraries.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2544 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-06 20:22:15 +00:00
aj
a59faf395d
fix compiling with ltdl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2542 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 20:44:51 +00:00
nils
ffb7928f6e
we need lt_dlinit()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2538 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 17:05:26 +00:00
martin
d744a6e5f5
Include reader.h if found.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2537 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 11:29:57 +00:00
nils
61f894a2c3
yet another atr + cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2535 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-04 09:23:28 +00:00
nils
9ca1bc2a09
remove unused internal function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2534 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-04 08:57:17 +00:00
aj
25cb1a3ca1
fix compiling with openssl installed in a non-standard location.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2530 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 20:51:54 +00:00
aj
ff62b88e1c
big configure update.
...
use pkg-config for openct, openssl, pcsc.
do not compilke libp11. do not compile sslengines.
remove scdl. use libltdl instead.
use libassuan.m4 macro for m4 detection.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2528 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 14:01:58 +00:00
sth
d8639b16ce
The lastUpdate field is in the EF(TokenInfo), not in the ODF (thx Nils)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2525 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-29 20:48:00 +00:00
sth
891ed0f197
Added Netscape/Mozilla specific types etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2524 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-29 12:49:53 +00:00
aj
96519c6b72
stop building libp11 and the ssl engines.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2523 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-28 20:18:52 +00:00
sth
bae2b51e01
Fix in new_file(): if there's already a key with such ID, take next one
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2522 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:35:33 +00:00
sth
bb2506cff9
Return the real pinref
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2521 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:33:52 +00:00
nils
89dacc6c82
fix compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2520 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:18:24 +00:00
sth
ed9e925989
Improved ACs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2519 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:11:46 +00:00
nils
3b6a90000a
add missing include, removed unused variable and initialize variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2518 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:59:01 +00:00
nils
9cbac71de9
decode preferredLanguage field if present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2517 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:54:43 +00:00
ludovic.rousseau
850cea465b
move PKCS11_open_session() from libp11-int.h to libp11.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2516 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 14:25:23 +00:00
sth
bd76165319
Have the option not to update the ODF (the lastUpdate field), this is usefull for cards that don't have an ODF that is un-writable or too small
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2515 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 09:50:48 +00:00
nils
eec0e22b03
de-/encode printable strings as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2514 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 08:00:44 +00:00
nils
260723da53
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2513 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 21:16:55 +00:00
sth
8e3dee0585
Added set_userpin_ref() to link a PIN value to a PIN ref for an existing user PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2512 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 09:01:57 +00:00
nils
1d05f32bc4
mark card/profile as dirty when an object has been deleted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2510 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:54 +00:00
nils
a28aa1f917
avoid warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2509 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:02 +00:00
sth
26108b0280
Added support for deleting pkcs15 objects (if the pkcs15init card driver for that card supports it)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2508 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:23:46 +00:00
nils
8ba443d1d9
fix parameter type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2507 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:22:25 +00:00
sth
b5e2a2afff
Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2506 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:20:13 +00:00
nils
b9efe849eb
add support for serial number in card-oberthur.c; supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2505 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:17:44 +00:00
nils
0d7b025a4b
add missing variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2504 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:15:57 +00:00
martin
7ffd68a9ee
Make the pcsc pinpad option work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2503 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:44:07 +00:00
martin
924a118501
Don't cache pins that protect a userconsent slot.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2502 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:39:43 +00:00
nils
2fb54dd374
use compile time initialization for the iso_ops structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2501 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 13:39:18 +00:00
nils
08b415a5a3
use non-repudiation flag only for the signature key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2500 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 11:06:18 +00:00
nils
f855074c27
check result of sc_file_dup + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2499 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 17:56:56 +00:00
nils
f317e2966a
sc_file_dup(): copy attributes as well, use explicit assignement and check return values
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2498 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 06:39:16 +00:00
nils
7ff54c7e2e
use calloc instead of malloc + memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2497 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 22:43:01 +00:00
sth
edb11bd2ea
Fix: object type contains not only the class
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 21:14:19 +00:00
sth
6c20b6a6ad
Undo-ing accidential commit of card-belpic.c and pkcs15-sec.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2495 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 14:01:54 +00:00
sth
f43d52476e
The lengths of the ASN.1 entries are used outside the if blocks -> declare them outside the blocks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2494 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 13:55:36 +00:00
ludovic.rousseau
25d3148ef6
use _LIB11_H instead of _LIB11_INT_H
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2493 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 08:39:29 +00:00
ludovic.rousseau
df86e3f8ac
PKCS11_CTX_unload(): do not call ERR_free_strings() and
...
ERR_remove_state() since OpenSSL strings may be used by the application
and we can't know
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2492 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 07:06:13 +00:00
nils
b143ac5637
add support for signature generation with a decryption key; patch supplied by Peter Koch <pk_opensc@web.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2491 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 21:35:13 +00:00
nils
9a49854fdc
use ERR_LIB_USER instead of 42
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2490 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 12:10:24 +00:00
ludovic.rousseau
decb9297dd
add PKCS11_change_pin() function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2489 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 11:05:09 +00:00
nils
305b68f10b
summary:
...
- do not use key enumeration as a test of login status, as this will
not work for all PKCS#11 libraries
- replace magic number used for PIN length with a constant
- add documentation for set_pin, as well as testing for NULL input
and checking for strdup failure
- made the global variable 'pin' static (TODO check if other global
variables can be declared static)
- if a PIN is allocated, then check for NULL
- if a PIN is to be freed, then whiten the memory first
- if the token has a secure authentication path, then the PIN shoud be
NULL (as per PKCS#11 v2, p. 126)
- replaced some fprintf statements with 'fail' (TODO all
fprintf calls should be replaced with log functions)
Patch supplied by Geoff Elgey <Geoff.Elgey@quest.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2488 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 10:58:16 +00:00
nils
d6e5facb0d
make old compilers happy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2487 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:33:43 +00:00
nils
5adbeff6e0
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2486 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:00:28 +00:00
martin
59e1f37bb2
* Clean up some whitespace
...
* class2->part10
* Make pinpad detection a configurable option
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2485 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:26:46 +00:00
martin
fc3048f55e
Remove the (stupid) use_pinpad option from pkcs15 structures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2482 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:04:02 +00:00
nils
a20f0d576e
two small fixes from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2481 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-11 19:14:23 +00:00
nils
4d48735d10
initialize sc_pkcs15init_operations at compile time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2480 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 21:31:18 +00:00
nils
f8d6634339
set obj to NULL to avoid double free in case of an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2479 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 21:00:52 +00:00
nils
25950cb01a
use inttypes.h instead of stdint.h; disable read_ssh_key when no uint32_t is available
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2478 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 19:04:08 +00:00
nils
39373c1ec8
initialize the oid object, patch supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2477 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 18:20:04 +00:00
nils
6dc33041aa
include sys/types.h if stdint.h doesn't exist + fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2476 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 21:27:50 +00:00
nils
3da0e1b8cd
allow up to 64 byte long pins
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2474 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 18:21:50 +00:00
ludovic.rousseau
9ea0db132e
PKCS11_login(), PKCS11_init_token(), PKCS11_init_pin():
...
use "const char *" instead of "char *" for pin arguments
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2473 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 11:51:17 +00:00
ludovic.rousseau
d1311aa965
pkcs11_strdup(): use "return NULL;" instead of just "NULL;"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2472 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 11:48:39 +00:00
nils
a3ae7da3ab
oberthur updates from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2471 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 07:53:59 +00:00
sth
2b6a2cb19c
One of the memset()s appears to write too much zeros on some systems -> put all the data in a struct and memset() this instead of each field separately. Thx to JP Szikora for notifying.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2470 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-08 14:25:19 +00:00
nils
45a9d05830
cleanup, mostly signed/unsigned issues
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2469 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-08 10:22:14 +00:00
nils
148b7900f7
Add support for the lastUpdate field to pkcs15init. Add flag to
...
indicate whether some data has been changed to the profile structure
and set the flag in the functions which change the card contents.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2468 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 19:07:24 +00:00
nils
69ffd496b2
the apdu error codes are unsigned => change sc_check_sw and the card ops check_sw
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2467 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 17:18:10 +00:00
nils
44384eccbf
- Initial support for TokenUpdate;;lastUpdate field. Change pkcs15 caching
...
code to use the card serial number and lastUpdate field (if present) to
specify the cache file.
- consistently use unsigned data types to specify object types
- make sc_pkcs15emu_get_df a local function (it's not used outside
pkcs15-syn.c and honestly I see no reason to export it).
- start of a new ChangeLog file (with some intial entries)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2466 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 16:24:35 +00:00
nils
b3992394fc
more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2465 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 15:03:39 +00:00
nils
ed3ba0231e
improve generalizedTime support + more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2464 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:28:20 +00:00
nils
23802d825e
properly initialize sc_asn1_entry elements + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2463 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:24:43 +00:00
sth
b12711e6b3
Reverse the export of function parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2462 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-04 06:29:35 +00:00
nils
eab657fb52
change sc_bin_to_hex separator parameter from char to int as character constants are integers in c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2461 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 18:43:40 +00:00
nils
4dd3c3f382
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2460 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 18:29:21 +00:00
sth
d443d373a4
More typo fixes, from JP Zikora
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2459 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 11:33:14 +00:00
sth
41889b27a1
Export function parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2458 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:07:09 +00:00
sth
37cd955055
Allow to seach a data object by it's application OID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2457 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:05:09 +00:00
sth
d0f267468e
Added function sc_compare_oid()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2456 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:00:00 +00:00
nils
94d899931e
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2455 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-02 21:13:06 +00:00
sth
080887c62f
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2454 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-02 20:48:27 +00:00
nils
0a8401a776
check malloc return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2453 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-01 08:59:06 +00:00
sth
90003b36b7
Added support for the Belgian EID card (shows the contents of the ID and Address files)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2452 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-29 21:21:03 +00:00
sth
90de623629
Add eidenv.exe tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2451 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-29 21:15:17 +00:00
sth
f5b586715a
Now compiles on Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2450 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-29 21:14:46 +00:00
mb
a5dca97c28
Fixed a warning (comparison between signed and unsigned).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2449 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-29 14:38:57 +00:00
nils
f59a51397c
apply Stef's patch which puts all public objects in first slot if only one pin is present (and hide_empty_tokens is true)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2448 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-24 14:06:02 +00:00
aj
c26dde1a82
fix compiling without openssl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2447 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-21 21:05:40 +00:00
nils
e16485826e
fix memory leak; patch supplied by Imanishi Masayuki <Masayuki.Imanishi@jp.sony.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2446 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-20 18:19:40 +00:00
nils
c2751a60da
fix use of x509v3 key usage extension value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2445 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-20 17:58:55 +00:00
aj
66b080f154
sorry, not compatible :(
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2441 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-19 21:03:03 +00:00
nils
b99c52c6f5
free error strings on when destroying context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2440 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-19 11:57:31 +00:00
sth
70d50abfba
#ifndef strncasecmp doesn't work because strncasecmp is no macro (thx Nils)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2439 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-19 11:20:17 +00:00
aj
65ab52d9cf
add new atr.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2438 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 22:33:27 +00:00
nils
a1261369e2
only copy resp if the operation was successful
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2437 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 21:30:30 +00:00
nils
e09bdac57b
don't use software prng
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2436 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 20:20:22 +00:00
sth
a1e2ac529d
Added #ifdef HAVE_OPENSSL for read_ssh_key()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2435 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 12:20:24 +00:00
sth
e3b11a0aa4
Don't build libp11 if we don't have OpenSSL support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2434 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 12:13:48 +00:00
sth
b9a7cd402a
Changes in .obj and .lib files now we have the new libp11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2432 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 11:56:11 +00:00
sth
3ba355247d
No strncasecmp() on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2431 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 11:54:07 +00:00
sth
9ac748f6d3
Install libp11.h + small fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2430 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 11:53:19 +00:00
sth
205d23f4c3
No strncasecmp() on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2429 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 11:51:34 +00:00
aj
ada4504daf
open a session if there is none.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2428 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 09:15:06 +00:00
nils
817e26a362
starcos has a GET CHALLENGE command ... useless flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2427 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 07:26:41 +00:00
aj
f7bbc8e95a
add functions to access smart card as random number generator.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2426 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 21:19:11 +00:00
aj
69c25e325a
oops, ldap/scam is no more.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2424 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:31:37 +00:00
aj
4c9cb46f72
remove scldap.conf, and pkg-config files for libscldap and libscam.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2422 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:23:25 +00:00
aj
0495aef57f
remove ldap/random related makefile commands.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2421 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:19:16 +00:00
aj
dd08853693
remove code dealing with random numbers for now.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2420 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:18:31 +00:00
aj
944904fac5
remove scrandom code. We will implement proper code to get random data
...
from the card itself.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2418 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:10:13 +00:00
aj
7de8272675
pam module obsoleted by pam_pkcs11 and pam_p11.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2416 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:08:06 +00:00
aj
85ab01a8cd
fail() returned NULL, windows need return 0;
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2410 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 09:39:44 +00:00
sth
7939f0b010
If we want to test signing, first see if the key can do this
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2409 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-15 13:37:38 +00:00
sth
be65c3804e
Cast correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2408 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-15 13:32:14 +00:00
aj
f21115d6e8
cert to key is even more interesting than key to cert.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2407 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-14 10:38:06 +00:00
aj
16a89ae2ef
Unload twice causes segfault.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2406 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 17:11:26 +00:00
aj
19419bb3d1
make the sign/encrypt/decrypt opterations public.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2405 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 17:10:54 +00:00
aj
124b046d99
first step to eleminate libpkcs11.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2404 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 13:50:21 +00:00
aj
dc27ebf414
commit latest code, improve include file split, first steps towards
...
eleminating libpkcs11.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2403 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 13:48:03 +00:00
aj
5038b57691
add new internal header file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2402 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 11:47:05 +00:00
aj
23685829b8
split libp11.h in an internal and a public part.
...
add p11_ops.c and other code by kevin stefanik.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2401 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 11:41:20 +00:00
aj
cbada7cbca
install header file, fix linking.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2400 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 10:24:54 +00:00
sth
217c4fcf12
Increased the ID length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2399 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-13 08:25:23 +00:00
nils
d88f377747
interpret rec_nr == 0 as a request to create a new record, fix for bug report #21
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2398 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-12 21:03:47 +00:00
nils
b9cf818d56
in case of T0 the Le value is omitted for case 4 APDUs; patch supplied by richard.musil@bigfoot.com
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2397 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-11 21:31:48 +00:00
nils
eddd1e3ab6
fix file descriptor byte and ef_structure type; patch supplied by richard.musil@bigfoot.com
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2396 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-11 21:28:55 +00:00
aj
d0259f046c
remove reference to no longer existing file pkcs11-internal.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2395 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-11 08:26:36 +00:00
aj
5ffcd1fb9c
fix compiling and distribution package.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2394 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 20:32:27 +00:00
aj
085c3cedbd
use new libp11.h header from libp11.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2393 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 18:40:08 +00:00
aj
b3b3e7607e
use new name in include syntax.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2392 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 18:38:52 +00:00
aj
30b9957637
enable libp11.pc pkg-config file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2391 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 18:37:58 +00:00
aj
9f308a1fcc
move and rename pkcs11-internal.h to libp11.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2390 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 18:36:24 +00:00
aj
7427606867
add Makefiles for libp11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2389 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 17:03:44 +00:00
aj
2445a52ad4
do not install libpkcs11 as shared library.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2388 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 17:03:15 +00:00
aj
4818083938
move p11_* into a new library.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2387 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-10 17:01:03 +00:00
nils
65eec98c71
enhance attribute support; patch supplied by supplied by Marc Bevand <bevand_m@epita.fr>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2386 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-08 21:16:31 +00:00
nils
9c011b0cab
fix check of the return value in C_GetAttributeValue; supplied by Marc Bevand <bevand_m@epita.fr>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2385 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-08 21:04:23 +00:00
sth
467b0e65f9
Oops, shouldn't have changed the serial number size in x509cert_info to 256
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2384 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-06 12:59:45 +00:00
sth
2731db845d
No uint32_t type in MS VS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2383 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-06 12:23:03 +00:00
sth
df232cfe67
Don't ignore the profile_option -- remark from Victor Tarasov
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2382 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 17:45:10 +00:00
sth
2585106e3c
Print an error if sc_pkcs15init_bind() fails
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2381 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 17:43:50 +00:00
sth
2c856aa71f
Increased sizes in rsakey_info struct
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2380 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 15:27:59 +00:00
sth
c9f652dc81
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2379 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 15:22:59 +00:00
sth
4b574b7925
SetCOS 4.4.1 supports keypair generation, keysizes of 512, 768 and 1024 are fine
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2378 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 15:22:17 +00:00
sth
de60c98462
Macro cleanup, patch received some time ago but appearently not committed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2377 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-05 13:34:03 +00:00
nils
052575e0dd
remove unnecessary include
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2376 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-01 22:37:39 +00:00
nils
cbb32e02e1
add initial support for atrust acos cards; patch supplied by Franz Brandl <f.brandl@a-trust.at>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2374 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-01 08:26:55 +00:00
nils
dc1a5b6e27
remove unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2373 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-01 07:17:01 +00:00
nils
3bbc9db115
GIVE RANDOM is for sm, so remove it from the etoken key generation code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2372 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-01 06:27:59 +00:00
martin
2819d87ce7
Make the names fit in pkcs11 limits
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2371 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-29 11:32:48 +00:00
aj
2c123d5bc7
oops, missed a #endif.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2370 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-28 21:16:02 +00:00
aj
d3ab255406
use uint32_t, it is a c++ stdtype and should work on all plattforms.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2369 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-28 20:33:32 +00:00
sth
e5ee45ace1
Use uint32_t on Mac
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2368 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-28 13:50:41 +00:00
aj
336c856e77
rediffed against openssh 4.1p1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2367 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-28 04:09:23 +00:00
aj
8e0d600b10
openscd code hasn't been used by anyone in years.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2366 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 21:49:36 +00:00
martin
3d0f17bc95
Annoying typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2365 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 13:52:08 +00:00
martin
5f2a3a58c7
Adjust function name to reflect documented functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2364 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 13:51:45 +00:00
sth
505d2a5f7c
No asm/types.h on MacOSX either
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2363 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 11:51:00 +00:00
aj
1d58adfbf4
add working file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2362 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 11:47:56 +00:00
aj
93707f47ce
remove broken file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2361 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 11:47:34 +00:00
martin
3eb0a0a9eb
Log in hex format of course...
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2360 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-27 10:08:29 +00:00
sth
57ca997cb9
Windows: no _uu32 in MS VS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2359 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-22 10:32:27 +00:00
sth
e725239e9c
Fix: if a card is inserted, the SC_SLOT_CARD_CHANGED flag must be set
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2357 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-17 15:47:28 +00:00
aj
aee678bdac
small makefile fix.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2356 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-16 20:15:38 +00:00
aj
b0e6b11bba
make it compile without openssl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2355 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-16 19:39:34 +00:00
aj
bf6808e3d8
"smart card" not "smartcard" or "SmartCard".
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2354 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-16 19:35:31 +00:00
aj
f5b1018d04
add options for displaying openssh keys.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2351 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-15 08:57:47 +00:00
aj
4568015476
move libraries from lib/pkcs11 to lib/,
...
rename the engine dir to engine, and
make it "openssl" so openssl can load
the engines automaticaly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2350 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-15 08:56:15 +00:00
nils
a6db0256c9
add netkey-tool from Peter Koch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2349 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-14 21:37:19 +00:00
martin
030d58d7ca
It is plain wrong to call again pcsc layer locking methods as card.c:sc_lock()
...
already does it when somebody goes to the card the very first time and thus
begins a transaction. iso7816.c methods should lock the card in
iso7816_pin_cmd() on card level if anything.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2348 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-07 14:31:09 +00:00
martin
fdb52385cd
Add support for pinpad PIN verification.
...
Patch from Andreas Steffen
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2347 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-07 12:43:43 +00:00
nils
ca0416a60d
microsoft's vs 6.0 doesn't like initialization during declaration. let's use memset instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2346 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-22 20:07:31 +00:00
nils
0d5d3eb151
enhance object writting support, patch supplied by Marc Bevand <bevand_m@epita.fr>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2345 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-21 10:21:53 +00:00
nils
a248911ed2
cleanup, patch supplied by Marc Bevand
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2344 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-20 09:55:13 +00:00
nils
f1625365bf
update from Peter Koch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2343 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-17 21:51:51 +00:00
sth
fa333542db
Don't used cashed PINs for a UserConsent key!
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2342 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-11 14:00:03 +00:00
sth
4a8c465fbb
Better choices for the sizes/FIDs + typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2341 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-10 19:58:34 +00:00
nils
9a7146cd62
add certs only when we have zlib support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2340 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-10 12:59:38 +00:00
sth
ad86ded031
If an object is added to a pkcs15_card, don't call sc_pkcs15_free_object() on it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2339 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-09 11:46:23 +00:00
nils
e78d245bd3
add support for Actalis card; patch supplied by Andrea Frigido
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2338 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-08 21:30:06 +00:00
nils
8631af20fd
add initialization support for token/pin; supplied by Marc Bevand <marc.bevand@smartjog.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2337 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-07 22:22:07 +00:00
sth
08d94ba74e
Fix: re-link the SO-PIN to the pkcs15 DF, otherwise the AC's in sc_pkcs15init_add_app() are ignored resulting in a.o. an unprotected pkcs15 DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2336 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-06 13:52:41 +00:00
sth
f6712b8736
Fixed handling of pkcs15 types and added support for storing pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2335 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-06 11:31:59 +00:00
sth
14e03407c1
Have pkcs15init as a DLL instead of as a static lib file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2334 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-04 13:17:26 +00:00
martin
246a31be8c
Announce the capabilities of the terminal
...
'press enter for pinpad'-enable the pintest utility
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2333 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-03 09:33:04 +00:00
sth
5b903845d7
Removed double line -- thx Nils
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2332 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-02 19:17:12 +00:00
sth
38b9c7e565
atr table reallocation fix by William Wanders
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2331 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-02 18:48:59 +00:00
sth
77af320e66
Removed unnessary #includes from previous path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2330 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-02 09:43:42 +00:00
sth
d19e2fb768
Typo fix -- causes compile error on MS VS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2329 c6295689-39f2-0310-b995-f0e70906c6a9
2005-05-02 09:41:06 +00:00
nils
0f3cfb09b5
free pin when ending a pkcs11 session; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2328 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-30 10:07:07 +00:00
nils
9d4be8f04b
changes from Antonino Iacono
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2325 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-25 21:00:10 +00:00
aj
1d8357ec7e
Ludovic Rousseau: rxvt can also do color so here is a patch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2322 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-25 19:21:43 +00:00
nils
0372069d74
changes from Antonino Iacono
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2319 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-24 16:17:20 +00:00
nils
d953492739
bugfix; supplied by Marc Bevand <marc.bevand@smartjog.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2318 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-24 09:28:27 +00:00
nils
45879d3997
add callback_data parameter to get_pin; supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2317 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-23 12:26:00 +00:00
nils
d9e2a443e3
try file id if selection via df name doesn't work; Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2316 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-23 11:20:24 +00:00
nils
9ad11a6b28
fix problem with unsigned int; pointe out by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2315 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-19 18:38:26 +00:00
nils
20059c984f
add support for yet another infocamere card, submitted by Sirio Capizzi <graaf@virgilio.it>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2314 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-17 16:43:31 +00:00
nils
88cea8e212
add yet another atr to card-etoken.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2312 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-16 13:36:30 +00:00
nils
34e7133bd2
added yet another atr to card-flex, supplied by: Giuseppe Raspanti <graspanti@crytron.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2311 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-16 12:06:28 +00:00
nils
315b961d9a
add support for gpk16k gemsafe cards, Douglas E. Engert et al
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2310 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-16 10:40:00 +00:00
nils
bf089a8fbb
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2309 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-16 10:37:14 +00:00
martin
0838631107
scrandom interface is not used by starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2308 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-16 10:21:36 +00:00
nils
66da039291
remove broken code, add skeleton for a new function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2304 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-10 21:58:31 +00:00
nils
ce140b65eb
disabled auth key/pin as the IDs are wrong
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2303 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-10 20:59:11 +00:00
nils
ab52f802c7
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2302 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-09 13:32:22 +00:00
nils
af8bf9d21a
add support cert loading, patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2301 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-09 13:23:47 +00:00
martin
489518b26a
Small fixes in the teletrust spec support code and related NEWS item
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2300 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-07 19:45:39 +00:00
nils
ac4dfc0e38
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2292 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-04 21:52:31 +00:00
sth
3439f9cdd7
Added initial support for SetCOS 4.4 cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2291 c6295689-39f2-0310-b995-f0e70906c6a9
2005-04-04 09:30:54 +00:00
sth
abf3bf9549
If the SC_CARD_CAP_USE_FCI_AC flag is set, sc_pkcs15init_authenticate() will check the file's ACs on the card instead of relying on the ones in the profile file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2290 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-30 18:25:50 +00:00
sth
a6f8354b6e
Added another life cycle state
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2289 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-30 18:18:46 +00:00
nils
d67389dfd6
bools are int; pointed out by William Wanders <william@wanders.org>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2288 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-30 16:40:01 +00:00
nils
f2526dfd8e
fix for solaris; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2287 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-29 19:59:30 +00:00
sth
de62a5306d
Moved init-card() till after the pin-initialisation, this allows init-card() to do operation with a pin without doing the pin stuff again. Shouldn't break anything -- if it does, we'll undo this.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2284 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 20:10:13 +00:00
sth
9221f1b2b2
Added opensc-to-pks11 error mapping
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2283 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 20:00:14 +00:00
sth
e992e1ddfb
Prevent doubles in the ACL entries
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2282 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 19:48:28 +00:00
sth
6102459d13
Allow an empty path in iso7816_delete_file(), to indicate that the current DF should be deleted.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2281 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 19:47:13 +00:00
sth
9029170d16
No unistd.h on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2280 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 19:35:35 +00:00
sth
8b94043a6e
Removed pinpad-ccid
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2279 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-26 19:33:17 +00:00
martin
72f20a71d8
Parentheses too..
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2278 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-24 16:57:00 +00:00
martin
1139181493
* fix an return code from ctbcs spec
...
* make sure pins and puk are correctly associated in esteid emu
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2277 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-24 16:54:10 +00:00
aj
f5b2845340
silence a few warnings.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2274 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 23:24:13 +00:00
aj
52d3262e90
apply improved profile handling code.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2270 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 23:10:50 +00:00
aj
54ac27bd40
remove winreg.h as global include (not needed in 99.9% of all files),
...
remove obsolete config file / profile dir definitions.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2269 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 22:58:49 +00:00
aj
769792ea31
fix egate token with cryptoflex on windows.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2261 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 22:44:48 +00:00
aj
7133146d28
put new version in pkcs11-global.c, too.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2259 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 22:37:06 +00:00
aj
8d27151cf6
remove .cvsignore files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2243 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-23 21:08:13 +00:00
nils
2cd6d428ab
fix free argument, pointed out by Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2240 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-18 20:36:52 +00:00
pisi
95225b7731
common pin validity check, supprot (still disabled) for pinpads in modify and unblock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2239 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 12:46:31 +00:00
pisi
295fe6138d
Introduce TeleTrust Class 2 spec compliant pinpad functionality and
...
incorporate the pinpad functions directly to reader-pcsc.c. Mainly because
the code requires access to internal pcsc-only structures and splitting
some definitions to an extra header would not be very nice. Also, the API
is pcsc based and usable with other ifdhandlers too, not just CCID.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2238 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 12:44:31 +00:00
pisi
c6c67692da
Minor additions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2237 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 12:25:25 +00:00
pisi
b6f9aa561b
A single flag for all pkcs15 layer applications to detect a) if pinpad is
...
present b) and if we should make use of it. Also remove the CCID specific
option for pinpad detection - if detected, the flag will anyway always be
set as it reflects the capabilities of the actual reader. Also, the
detection mechanism is changed to be crossplatform.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2236 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 11:45:29 +00:00
pisi
3eec01945a
copypaste ****s. Introduce a common internal function that removes several copypastes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2235 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 11:14:41 +00:00
pisi
a1ffc6b72e
Space cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2234 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 10:47:01 +00:00
bert
eb4717ea17
API fixup: use defined type instead of struct for exposed structs (part 2)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2233 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 00:04:44 +00:00
bert
2d97002824
API fixup: use defined type instead of struct for exposed structs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2232 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-08 20:59:35 +00:00
aet
8c9895c896
- Add support for getting location of the configuration
...
file from Windows registry (HKCU/HKLM)
- Handle OPENSC_CONF environment variable on unix
- Add configuration option "profile_dir" to bypass
build time setting for pkcs15 initialization profiles
directory
Patch by Andreas Jellinghaus, with minor enhancements
from me.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2231 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-07 14:00:31 +00:00
pisi
6ca66815b6
whitespace cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2230 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-06 14:37:22 +00:00
pisi
1463b324b3
consistent naming and trimmed lines
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2229 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-04 01:41:39 +00:00
aet
cae39291de
- eidenv cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2228 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-03 18:12:07 +00:00
aet
47721beae2
- Minor fixes, convert crlf -> lf
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2227 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-02 09:03:19 +00:00
pisi
a702bdbdc8
Removed openscd from automake/distribution as it should be dead code.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2225 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-02 08:11:47 +00:00
pisi
8baf433e36
eidenv - small utility for Estonian ID card *nix only)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2224 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-02 08:05:52 +00:00
sth
e336488431
Correctly check for reading out of file bounds, thx to Sirio Capizi
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2223 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-02 06:03:49 +00:00
sth
5499fcb302
Typo fix (thx Andreas, sorry Juha
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2206 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-27 07:25:29 +00:00
sth
a1d4fe394e
'pinpad-enable' pkcs15-crypt: if it's a pinpad and you press enter when being asked for a PIN, you can enter the PIN on the reader
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2205 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-26 19:47:54 +00:00
pisi
1febdee2b2
If the PKCS#11 token can itself authenticate the user, we let it do it and ask
...
nothing. First because many applications that might link to the openssl
library would never-ever implement it and anyway it is the task of the pkcs11
module to take care of the authentication however the module/token feels feasible.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2201 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-25 21:17:11 +00:00
aet
3a118fb33f
- Some fine-tuning to get previous, current
...
and future FinEID cards working.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2200 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-24 11:11:12 +00:00
aet
e53ab92d6e
- Don't loop forever
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2198 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-23 19:34:56 +00:00
aet
033a0589fe
- For completeness sake, add SC_CARD_FLAG_VENDOR_MASK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2197 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-23 19:09:39 +00:00
aet
5beab31402
- Case cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2195 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-23 10:39:33 +00:00
nils
9d80614036
bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2193 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-22 21:03:51 +00:00
aet
8a8f2cd6bc
- Introduce a new powerful card_atr mechanism to opensc
...
configuration file to handle any configuring related
to certain card / cards using atrmask.
- Rewrite Martin's force_protocol to _sc_check_forced_protocol()
to make it possible to share the code with other reader driver
implementations than pcsc.
- Implement _sc_match_atr_block() to help out with force protocol
and pkcs15 emulation layers, to find information that's not
stored directly to sc_atr_table.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2192 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-22 07:59:42 +00:00
aet
b80890d49c
- Increase SC_MAX_READER_DRIVERS / SC_MAX_CARD_DRIVERS
...
- Some cleanups before future commits
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2191 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-20 08:26:27 +00:00
pisi
118c1f914a
test label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2190 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-15 14:41:30 +00:00
aet
377afe0225
- Typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2189 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-14 09:13:05 +00:00
aet
7268799d92
- Fix a long-standing issue for user configured atrs
...
in the configuration file; free allocated memory
from the card_driver structures.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2188 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-14 09:12:44 +00:00
aet
fcc93f089d
- Correct some information for Italian eid cards, I suppose.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2187 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-13 18:24:19 +00:00
sth
115891430e
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2186 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-13 17:58:12 +00:00
aet
f2663f5d7c
- Fixed a typo (Bernhard Froehlich)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2185 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-13 11:41:45 +00:00
aet
36c507ea5a
- Fix a pin issue with pinpad readers (Bernhard Froehlich, Martin Paljak)
...
- UI_add_input_string enhancements (Martin Paljak)
- printf cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2184 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-13 08:43:09 +00:00
aet
df5e357694
- Whitespace cleanup from me and Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2181 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-11 20:09:34 +00:00
aet
4dae83f550
- A fix for ISO 7816-15 cards I'm playing with. No feedback
...
received about the patch, let's move on. The patch shouldn't
affect any current behaviour.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2179 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-11 10:05:54 +00:00
aet
86974c8aab
- A patch for belpic and other global platform pin cards (Martin Paljak)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2178 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-11 10:03:52 +00:00
aet
43732726ff
- Add cards.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2177 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-11 10:01:57 +00:00
aet
b5528b58d4
- Add ATR for a CryptoFlex card from Mario Strasser, that
...
I forgot to add over six months ago.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2175 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 12:48:50 +00:00
aet
91d16e04b0
- Change sc_atr_table->id to type, so the name is synced
...
between sc_atr_table and sc_card structures.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2174 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 10:09:15 +00:00
aet
6c6e47acbb
- Add cards.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2173 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 10:08:27 +00:00
aet
32b417cbf3
- First stab towards standardized card types
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2172 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 10:07:13 +00:00
aet
956430edaf
- Remove card-oberthur.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2171 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 09:57:41 +00:00
aet
1e3623ff1b
- Add cards.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2170 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-10 09:56:41 +00:00
aet
0eb390686c
- Remove outdated comment, part of the information
...
wasn't even correct.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2169 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 20:16:24 +00:00
aet
539232f0df
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2168 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 20:03:07 +00:00
aet
e9142162c8
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2167 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 19:15:40 +00:00
aet
73aa989875
- Unify a bit the output of commands like opensc-tool -D
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2166 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 14:47:46 +00:00
aet
8d24aa78c4
- Fix for the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2165 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 14:09:27 +00:00
aet
3d9b32499a
- _sc_match_atr: add support for atrmask field in sc_atr_table
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2164 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 14:07:36 +00:00
aet
42ecafabb8
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2163 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 14:05:55 +00:00
aet
bb7e663fdb
- Add comments
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2162 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 14:05:19 +00:00
aet
91fb274b1a
- Checkpoint commit, add support for the next generation FinEID
...
cards with ISO/IEC 7816-15 layout.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2161 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 11:37:25 +00:00
aet
ece96aff98
- Add atrmask to sc_atr_table
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2160 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-09 11:33:37 +00:00
nils
cdd240397f
remove unused profile entry
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2159 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-08 19:49:28 +00:00
nils
e679eb17e6
remove unused define
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2158 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-08 19:33:30 +00:00
aet
a854de4698
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2157 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-08 09:51:56 +00:00
nils
10569f110e
workaround for broken cashmouse driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2156 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-07 22:43:51 +00:00
aet
864825651e
- Fixed typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2155 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-07 17:03:47 +00:00
aet
0b773d6612
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2154 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-07 11:40:58 +00:00
nils
71b29ca9c8
remove outdated comment
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2153 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-07 10:58:22 +00:00
nils
14cbf7c304
fix usage of sc_pkcs15_pin_info_t::max_length etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2152 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-07 10:53:12 +00:00
nils
8f7a8bde03
no need to include internal.h and asn1.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2151 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 21:38:10 +00:00
nils
4692b2c6b4
update, note: this totally untested
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2150 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 21:34:59 +00:00
nils
bc2b03883d
fix type flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2149 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 21:32:54 +00:00
nils
edbfa95bf4
const fixes etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2148 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 21:01:09 +00:00
nils
8a9646cc1b
as every card structure has an own copy of the card ops struc, allocating a new one shouldn't be necessary
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2147 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 20:46:15 +00:00
aet
bd0cb300f8
- Ahm, fixed a typo in the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2146 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 20:14:38 +00:00
aet
69d2e9014d
- Optimize a few cpu cycles from _sc_match_atr_hex
...
- Replace struct sc_atr_table / _sc_match_atr with
recently introduced _hex variants
- Rewrote _add_atr
- Introduce int type variable to sc_card_t, so that
every other card driver won't have to glue around
with this
- Card driver cleanups, optimize the number of
sc_match_atr called per card driver. Also
always try direct match with _sc_match_atr
first, before relying on eg. historical bytes
information on some card drivers
- Fixed a memory leak from the miocos driver
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2145 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 19:40:40 +00:00
nils
c30494a942
declare some functions static + some type fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2144 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 10:28:43 +00:00
aet
176323ac03
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2143 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 10:06:21 +00:00
aet
d1dd355e73
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2141 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 08:57:36 +00:00
aet
dea81dfe04
- Warning fix, build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2140 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-06 08:53:50 +00:00
nils
026f7ae89b
even more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2139 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-05 10:02:56 +00:00
nils
7d6b3937e9
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2138 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-05 09:54:05 +00:00
nils
235abe1ffd
declare some functions static plus some type fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2137 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 22:52:13 +00:00
nils
e0c1b6e8f1
remove unreachable code, make some functions static and fix parameter type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2136 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 22:33:51 +00:00
nils
f2cf81ba19
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2135 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 22:11:08 +00:00
aet
bd0f86f69c
- Unify all card drivers ATR matching code to use _sc_match_atr_hex,
...
untested as of yet.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2134 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 20:29:35 +00:00
nils
0b43659efa
fix some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2133 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 18:10:23 +00:00
aet
1d9bb86126
- Indent cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2132 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 17:32:03 +00:00
aet
26f9fa004e
- Revert previous patch, it's unnecessary after recent changes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2131 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 17:29:16 +00:00
aet
cbe2904889
- Introduce _sc_match_atr_hex / struct sc_atr_table_hex.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2130 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 15:57:38 +00:00
aet
10e9bd4e05
- Cleanup ATR dumping code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2129 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 14:38:20 +00:00
aet
42d3d503c7
- Add internal.h, that's where the config.h and other general
...
stuff comes from.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2128 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 11:43:51 +00:00
nils
f9645facea
use strncpy instead of snprintf + update of pkcs15-netkey.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2127 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 09:27:01 +00:00
nils
54f8794267
indent fixes and cleanup by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2126 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-03 22:44:19 +00:00
nils
a0aa5dd05e
make win compilers happy (include config.h)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2125 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-02 22:18:50 +00:00
nils
5c2f9f72d3
first part of a pkcs15 emulation driver cleanup/rework:
...
use new api the create pkcs15 objects (note: the part enclosed
in '#ifndef OPENSC_NO_DEPRECATED' statement will be removed
in someday). At first only for pkcs15-esteid.c and pkcs15-starcert.c
but the others will follow soon (including some documentation)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2124 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-02 21:18:54 +00:00
aet
c1b0626cdd
- Cleanup, typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2123 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-02 10:21:10 +00:00
nils
bd356f61ba
fix indent
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2122 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 19:09:35 +00:00
nils
6e05b6bfbc
add debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2121 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 19:03:39 +00:00
nils
c95726c782
bugfix: reselect application directory when lock_login=false
...
is set (at the moment only for pkcs15_prkey_sign and
pkcs15_prkey_decrypt), see:
http://www.opensc.org/pipermail/opensc-devel/2005-January/005345.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2120 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 19:02:15 +00:00
sth
4179fbedf8
Work-around for the lack of FCI info, so the card can be used with opensc-explorer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2119 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 07:53:50 +00:00
sth
8857ff5b1c
Work-around for cards that don't return FCI info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2118 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 07:52:40 +00:00
sth
b59fb4597e
Have the option add a delay before resending an APDU (after a 6CXX response). Is needed for most current belpic cards on fast readers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2117 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-30 19:20:38 +00:00
aet
5e0453fb8a
- Indent source
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2116 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-30 13:50:08 +00:00
aet
efe1a36845
- Cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2115 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-30 13:29:10 +00:00
sth
a6ba20a1e3
Added belpic card driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2114 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-29 12:14:22 +00:00
sth
c8d89211eb
src/libopensc/card-belpic.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2113 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-29 12:10:52 +00:00
aet
16b1b6e5a2
- Add experimental multi-slot support for CT-API
...
and CT-BCS 1.0 enhancements. (Bernhard Froehlich <ted@convey.de>)
- Enable CT-API for win32
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2111 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-29 10:49:48 +00:00
aet
986724c1ad
- Build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2110 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-29 10:44:07 +00:00
aet
41dced301a
Update
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2109 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-29 09:13:56 +00:00
nils
14d1f7f6a6
yet another fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2107 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-28 21:22:40 +00:00
sth
b8d92a365a
Added pinpad-ccid.obj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2106 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-28 20:41:12 +00:00
sth
7ea47a2bba
Windows fix: SCARD_CTL_CODE is already #defined in a Windows header
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2105 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-28 20:39:47 +00:00
nils
d67a4ea523
fix last commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2104 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-27 22:52:44 +00:00
sth
90e967d042
Fix: stop parsing at the end of the file, not when finding padding bytes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2103 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-27 21:35:23 +00:00
aet
622607a68c
- Build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2102 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-25 11:45:47 +00:00
aet
5a5c6d165e
- Add use_ccid_pin_cmd boolean to opensc.conf, for now.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2101 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-25 11:11:13 +00:00
nils
32e5d3fc81
fix lock/unlock mismatch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2100 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-24 22:10:55 +00:00
aet
d4f2e2363f
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2099 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-24 19:46:57 +00:00
aet
8182177a00
- Early ccid pinpad cleanups, more to follow
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2098 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-24 18:30:55 +00:00
nils
69cd0dbb76
make it configurable whether or not allow logging of sensitive apdu command data at all (to please the Belgian EID guys ;-)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2096 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-24 17:19:08 +00:00
nils
3158fa3e05
merge Martin Paljak's ccid pinpad changes from the OPENSC_0_9 branch to the cvs head
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2095 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-24 11:31:11 +00:00
nils
f66913ca30
just issue a warning in case of a missing attribute, patch supplied by Philipp Marek (with some changes from me)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2094 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-23 19:48:48 +00:00
nils
56487f86a1
more indent fixes from Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2092 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 18:47:41 +00:00
nils
d605ba7f0a
fix more memory leaks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2091 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 18:31:05 +00:00
nils
ea59c97887
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2090 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 18:25:26 +00:00
nils
517da66876
fix memory leaks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2089 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 11:06:01 +00:00
nils
2e1ae46257
fix memory leak: use object specific release method
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2088 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 10:04:22 +00:00
nils
d644979168
print the atr in standard opensc hex format, patch supplied by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2087 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 20:39:25 +00:00
nils
485cc32f9b
even more indent issues
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2086 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 20:12:55 +00:00
nils
ced7764f02
fix debug message + remove empty lines, patch supplied by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2085 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 19:56:49 +00:00
nils
14ff6bdfc5
fix indent again
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2084 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 19:52:08 +00:00
nils
cb5d576267
some indent fixes from Martin Paljak plus some additional changes from me
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2083 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 18:15:43 +00:00
nils
8a0fc5bdcf
fix indent, patch supplied by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2082 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 16:17:32 +00:00
nils
7ed9a18d51
don't print key length in case of a private key (as private key doesn't have the CKA_MODULUS_BITS attribute)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2081 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 16:12:14 +00:00
nils
65986182e4
fix indent, patch supplied by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2080 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 08:00:41 +00:00
nils
95440fb15b
cleanup pin handling (set and use sc_pin_cmd_pin->pad_length + use pkcs15 puk object if existing)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2079 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-18 21:42:00 +00:00
nils
bfee7bb9b3
of course we should not do it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2078 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-17 09:10:53 +00:00
sth
08c3cc90fa
Simplified the procedure to link with openssl on Windows: now you only need to slightly change Make.rules.mak instead of hacking in several Makefile.mak files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2077 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-16 21:12:38 +00:00
aet
82712c45b8
- Add dynamic loading support for win32, Bernhard Froehlich <ted@convey.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2076 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-16 14:24:57 +00:00
nils
8f4f732c3b
in case of SC_AC_UNKNOWN it doesn't make much sense to verify something + add missing suppress_errors--
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2074 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-14 23:14:34 +00:00
nils
d73ed35678
change auth_id -> id, show pin type, update pkcs15-init manpage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2073 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-13 21:52:39 +00:00
nils
5e552bddc1
starcos: use iso decipher, iso7816: set le to 256 == 0x00
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2072 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-13 20:28:57 +00:00
nils
9ac35022af
remove misleading comment
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2057 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-09 20:10:44 +00:00
nils
2f15c03218
evaluate pkcs15 pin type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2056 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-08 10:20:21 +00:00
nils
5e5c61cd28
types are unsigned int
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2055 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-07 18:50:04 +00:00
aet
fb0889a9cc
- fixed a typo, pointed out by Bernhard Froehlich <ted@convey.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2054 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-04 19:45:05 +00:00
nils
4c391a21ac
dump version info in the log
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2053 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-03 17:47:25 +00:00
nils
f509f00d17
some cleanup + improved error checking
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2052 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-03 17:25:18 +00:00
nils
a82a40e977
some cleanup + improved error checking
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2051 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-03 17:20:17 +00:00
nils
4bb21d0a22
check calloc return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2050 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-29 23:20:22 +00:00
nils
c5df70d391
bugfix, pointed out by David Mattes <david.mattes@boeing.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2048 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-29 23:11:11 +00:00
nils
b1d4e36529
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2047 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-27 14:33:56 +00:00
nils
bd02c1a6be
add data field for subject Common{Private|Public}KeyAttributes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2046 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-27 13:22:06 +00:00
nils
d89c7a733d
implement serial number support for cryptoflex cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2045 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-24 23:24:12 +00:00
nils
ebf6c8ecfa
fix type, found by T.Fujita <fujita@ouk.jp>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2043 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-23 10:49:10 +00:00
aet
372c5c9e0a
- Revert the previous patch, as it broke the snapshot generation
...
and has been broken since.. July? No new automatic snapshots
until some hardware issues have been solved.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2042 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-23 09:28:51 +00:00
nils
3931ee708d
cleanup ...
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2041 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-22 10:17:00 +00:00
nils
08826acb4d
flags/types are unsigned int, the exponent shouldn't be negative and more const
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2040 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-22 09:54:41 +00:00
nils
5847b646f9
cleanup: -index shadows a variable in /usr/include/string.h
...
-some signed vs. unsigned issues
-and some const cleanup
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2039 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-22 09:48:27 +00:00
nils
4ddfe862e5
cleanup: signed vs. unsigned and some const
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2038 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 22:38:37 +00:00
nils
39e8ddf31d
more const ...
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2037 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 21:52:32 +00:00
nils
78b0091056
more const
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2036 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 21:47:19 +00:00
nils
92ce484b57
cleanup: declare structures as const
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2035 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 21:43:24 +00:00
nils
2db63b17f9
signed vs. unsigned
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2034 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 15:00:57 +00:00
nils
048a7c3996
char * -> const char *
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2033 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 14:01:22 +00:00
nils
f0224d3a4b
disable unused functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2032 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 13:56:41 +00:00
nils
8446dc7cec
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2031 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 13:22:10 +00:00
nils
bea5746094
remove superfluous code, Martin Paljak <martin@paljak.pri.ee>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2030 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 11:03:57 +00:00
nils
3d75aeeaff
force_protocol cleanup from Martin Paljak <martin@paljak.pri.ee>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2029 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-21 09:54:47 +00:00
nils
609fb32a25
fix help message (supplied by Philipp Marek)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2027 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 20:05:47 +00:00
nils
01f549da22
fix public key reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2026 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 19:44:38 +00:00
nils
efe5366af6
dump serial number only if we have one
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2025 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 08:03:40 +00:00
nils
8673508a43
fix memory leak, cleanup: use object specific release method
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2024 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-18 14:14:57 +00:00
nils
e3dc91d562
serial number support for opensc-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2023 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-16 08:50:51 +00:00
nils
786878c396
implement serial number support for gpk 16k cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2022 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 19:59:59 +00:00
aet
2ce41aec68
- Cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2020 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 18:10:29 +00:00
aet
a430c8c57d
- Build fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2019 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 18:01:47 +00:00
nils
ed0d949af0
cleanup ...
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2018 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 17:34:15 +00:00
aet
bd45a8aef1
- Update version for win32 build
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2017 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 15:42:27 +00:00
aet
a3ad3b0407
- Cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2016 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 14:47:31 +00:00
aet
55e170e0ac
- Build / warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2014 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 13:53:36 +00:00
aet
e5baf6da45
- Convert C++ comments into C to avoid compiler errors on some platforms
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2013 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 10:56:45 +00:00
nils
e7a0b8f4eb
cleanup: declare local functions as static, renamed shadowed variables etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2012 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 09:35:30 +00:00
nils
57cc65e485
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2011 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 08:38:36 +00:00
nils
8e05d3eabb
do a memcpy only if source and dest are different
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2009 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-13 20:58:28 +00:00
nils
7a0738ecb6
local functions should be static
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2008 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-13 11:24:53 +00:00
nils
f2157e90ba
don't close stdout/stderr
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2005 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-13 09:48:54 +00:00
nils
71441cd6a5
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2003 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-12 21:51:51 +00:00
nils
5feb1f133f
close files when the context is destroyed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2001 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-12 20:41:04 +00:00
nils
56a37d6c48
use object specific release method (if existing)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2000 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-12 19:13:17 +00:00
nils
75b9f0b5de
fix (potential) memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1998 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-12 17:17:07 +00:00
nils
895289c904
bugfix: don't try to get the CKA_MODULUS_BITS attribute from a private key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1996 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-09 08:23:57 +00:00
nils
711150f715
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1994 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-08 20:57:37 +00:00
aj
d2442fe48d
make functions static, so the names don't conflict.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1991 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-05 19:03:55 +00:00
nils
0d7c9328f0
suppress error message when testing signature alg
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1989 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-05 16:35:54 +00:00
aj
6ff0afc336
new pin handling to make opensc engine work with wpa-supplicant.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1987 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-30 21:32:18 +00:00
nils
eb619d1422
bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1986 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-26 08:43:44 +00:00
nils
2d2a6d8bac
add pkcs15 emulation support for the Italian postecert card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1985 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-24 17:00:53 +00:00
nils
9dc98ed262
try to avoid conflicts with file ids of different file types
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1983 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-15 09:39:21 +00:00
sth
5a4fc80033
Don't check if the token is initialised
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1981 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-12 19:49:22 +00:00
nils
0370a53204
try to avoid conflicts with file ids of different file types
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1979 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-12 16:59:09 +00:00
nils
fe89863e92
bugfix from Antonio Iacono
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1978 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-05 21:04:33 +00:00
aj
5a618d8a54
add more *.pc files for all other libraries as well.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1976 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-05 18:31:57 +00:00
aj
1869b95bae
Add spanish manual by Jonsy (teleline) <jonsito@teleline.es>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1975 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-05 18:30:59 +00:00
aj
b0649c1e4f
build fixes by Vile Skytt�.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1973 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-04 19:14:58 +00:00
nils
ca939d1dd6
bugfix from Antonio Iacono
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1972 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-03 21:39:47 +00:00
nils
c613908dde
check only for attributes which can be present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1970 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-03 18:14:58 +00:00
nils
7c005458ef
update for the Infocamere support, supplied by Antonio Iacono
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1969 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-02 21:46:23 +00:00
aj
d1da4005aa
fix select_file in mcrd. by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1968 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-01 21:13:57 +00:00
aj
44c55aea82
clarify micardo situtation.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1965 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-01 11:41:20 +00:00
nils
4bb760db4d
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1960 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-29 20:08:54 +00:00
nils
2b29b3b7a8
fix last commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1959 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-27 16:10:32 +00:00
nils
a37338352a
remove obsolete module support in libopensc (scdl should now
...
be used)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1958 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-27 06:41:27 +00:00
sth
17fa73fb5d
scdl.lib needed for for the link step due to the recent changes in dynamic loading
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1955 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-27 05:10:34 +00:00
nils
ba23f8246a
support for dynamic pkcs15init drivers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1953 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-25 10:43:50 +00:00
nils
ace9520193
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1951 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-24 17:20:29 +00:00
nils
897ca8eff2
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1950 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-24 17:17:48 +00:00
nils
e583473ceb
two patches from Marin Paljak <martin.paljak@gmail.com> :
...
- remove unnecessary function from the reader ops
- add a field for pinpad support
- cleanup + fix indent in card-mcrd.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1948 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-22 07:29:07 +00:00
nils
ef8df66b5d
sc_module_*() -> scdl_*()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1947 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-20 06:53:14 +00:00
nils
d0de68566f
sc_module_*() -> scdl_*()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1946 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-18 21:35:24 +00:00
nils
3dacb2c626
implement dynamic card/reader support
...
from Juan Antonio Martinez (with some input from me)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1944 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-18 08:24:12 +00:00
nils
548cf72735
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1942 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 20:40:58 +00:00
nils
5985415603
some cleanup: 'int' -> 'unsigned int' for flags, 'int' -> 'size_t'
...
for length + remove some compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1940 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 20:20:59 +00:00
nils
912ddbdf57
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1938 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 18:34:24 +00:00
nils
5b4730dabd
flags should be stored in a 'unsigned int' (at least this seems to be
...
the convention in libopensc) => change tokenInfo flags from
'unsigned long' to 'unsigned int'
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1936 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 16:46:34 +00:00
nils
2c0781335c
fix signed vs. unsigned mismatch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1934 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 16:20:46 +00:00
nils
f318fec2b0
sc_module_* -> scdl_*
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1933 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-17 15:59:38 +00:00
nils
c994105bcf
suppress annoying (but unimportant) error message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1931 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-14 06:37:04 +00:00
nils
fd5555bc09
fix compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1929 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-13 19:07:57 +00:00
nils
3d64764d4d
fix int vs. size_t mismatch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1926 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-13 18:54:06 +00:00
nils
05fb0f4587
initialize pointer to NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1925 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-13 18:02:39 +00:00
sth
61360066f7
Added info for EF data files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1922 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-13 07:19:38 +00:00