sth
8f230f5c1d
Do an sc_lock() before an sc_pkcs15init_bind(). Reason: in sc_pkcs15init_bind() an sc_lock() and sc_unlock() is done; and when the lock_login config option is set to false, the sc_unlock() will call logout() which for some cards means a SELECT(3F00) -> unwanted change of the current EF/DF causing errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2629 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-01 18:51:34 +00:00
aj
9d4d8ec98a
reomve unneeded ifdefs.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2628 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 17:44:42 +00:00
sth
6effc69169
Removed the bundle on Mac
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2627 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 11:17:06 +00:00
aj
90d0046a24
"Unsupported" might be easier to understand.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2626 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 06:35:29 +00:00
sth
10fa4a6962
Fix: deleting a cert chain with 1 or more intermediate CA's crashed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2625 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-28 14:52:32 +00:00
nils
4be1f40fd3
add option to specify the key length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2624 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-27 17:22:48 +00:00
aj
06e1239a89
new tcos atr provided by Gerald Richter.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2623 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-24 17:45:54 +00:00
aj
7bf15d3d7d
replace gpl'ed and old version with new lgpl'ed version from glibc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2622 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-23 15:47:44 +00:00
aj
7d2ebb11c4
scdl is replaced by ltdl, libp11 and sslengines are not standalone.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2618 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 14:51:21 +00:00
aj
1d251cfa7a
Document cryptoki header files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2617 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 13:15:11 +00:00
sth
d9bd913306
No SC_AC_OP_DELETE for EFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2616 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 12:45:31 +00:00
aj
7d5d0ecfb2
scconf no longer needed for pkcs#11 spy.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2614 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 20:18:37 +00:00
aj
d05e28d1f5
do not install bundles on mac os X. no reason to.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2613 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 20:17:22 +00:00
martin
3c47bb093c
Fix makefiles
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2611 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 12:52:36 +00:00
nils
75d8f0492e
fix TPDU if T0 is used
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2608 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-20 22:22:31 +00:00
nils
052a4933ae
remove unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2606 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-19 16:37:19 +00:00
ludovic.rousseau
81b47ab8a4
use_color(): add "rxvt-unicode" to the list of terminals supporting
...
colors
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2605 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-19 08:09:44 +00:00
aj
92789b9837
undo change 2397 as it breaks openct and
...
you can use apd_masquerade = case4as3 instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2604 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 20:29:36 +00:00
aj
6c1d35e062
make openct readers configureable.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2603 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 12:33:31 +00:00
aj
881c80d839
pkcs11-spy no longer uses a config file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2602 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 11:00:00 +00:00
nils
6abeaf1f1c
add a new function
...
void sc_mem_clear(void *ptr, size_t len);
to clear a memory buffer. If OpenSSL is used this function
is a wrapper for OPENSSL_cleanse, otherwise memset is currenlty used.
Use this function to clear memory buffers with sensitive content.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2601 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 10:44:45 +00:00
nils
47d2baf5a3
use calloc instead of malloc + memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2600 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 09:40:12 +00:00
nils
f60996526a
remove useless memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2599 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:53:25 +00:00
nils
142d18378b
don't use static buffer in iso7816_build_pin_apdu
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2598 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:20:13 +00:00
nils
d00d795782
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2597 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:04:26 +00:00
nils
55418c5ac3
log dlerror message when dlopen failed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2596 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 20:31:06 +00:00
nils
5123be2b85
add two new functions
...
sc_reader_t *sc_ctx_get_reader(sc_context_t *ctx, unsigned int i);
unsigned int sc_ctx_get_reader_count(sc_context_t *ctx);
to access the reader_count and the sc_reader objects (to avoid accessing
the sc_context members directly).
Use these functions in src/pkcs11 + error checking to avoid accessing
invalid sc_reader objects.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2595 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 10:18:55 +00:00
nils
aec4a81304
add pkcs15 emulation support for a cardos based id card issued by tc trustcenter
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2594 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 08:55:09 +00:00
sth
00be34c4a2
Added certificate update functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2593 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 19:40:20 +00:00
sth
e15c54e1c5
Win32: we now need the external libtool package
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2592 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 05:55:53 +00:00
sth
ca3be84ffb
Fix warning on Windows compiler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2591 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 05:41:29 +00:00
sth
595e143045
Added setcos.profile (thx JP Szikora)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2587 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-13 08:13:13 +00:00
nils
59cae4140b
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2585 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-12 21:09:12 +00:00
nils
ba179c1bb3
remove superfluous comma
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2573 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 21:06:49 +00:00
nils
511790880b
more pointer madness to make the compiler happy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2572 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 21:05:25 +00:00
nils
d0f1b085e9
fix function pointers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2571 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 20:40:58 +00:00
sth
fd86e44094
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2570 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 19:57:43 +00:00
nils
68a49360d2
pkcs15-netkey.c -> pkcs15-tcos.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2566 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 19:51:38 +00:00
nils
02cc450be0
update tcos pkcs15 emulation drivers; patch supplied by Peter Koch <pk_opensc@web.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2565 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 19:30:43 +00:00
aj
21e3b71029
use ltdl not scdl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2564 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 14:43:59 +00:00
nils
418e87f944
select file even if no acl for writting is set; patch supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2559 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 07:15:03 +00:00
aj
c9e80e95ea
we use libtool for linking, so it can calucalte the dependencies using
...
LTLIBLTDL better. Thanks to Ralf Wildenhues.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2558 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 17:21:58 +00:00
aj
ce14d27cb3
AC_SUBSTed variables are better used with $(..). Thanks to Ralf Wildenhues.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2557 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 17:15:07 +00:00
martin
8596348a75
* Get rid of reset card error that comes from pcsc only and deal with reset situations with SCardReconnect
...
* Add some options to control pcsc behavior.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2553 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 11:35:26 +00:00
nils
7a2fec9b86
remove dependence on libopensc, instead use scconf directly.
...
Note: this code is still experimental !
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2552 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 20:05:13 +00:00
nils
9f26a4ae35
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2551 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:34:27 +00:00
nils
d37315ec35
cleanup key usage handling, cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2550 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:32:52 +00:00
nils
f9db170520
we need libltdl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2549 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:20:24 +00:00
nils
cfc64a494e
let src/libopensc/ compile with -Wall -W -Wno-unused-parameter -Werror
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2547 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 08:47:13 +00:00
nils
f6c95792fe
let src/libopensc/ compile with -Wall -W -Wno-unused-parameter -Werror
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2546 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 08:33:55 +00:00
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