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
sth
d5c1436ed6
Added RSA decryption (Robert Pragai)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1921 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-12 19:36:06 +00:00
nils
b78fbd0d7a
u_char -> unsigned char
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1917 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-11 21:22:54 +00:00
nils
5a328e3dcc
update pkcs15 emulation stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1916 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-08 21:29:55 +00:00
nils
0d4ca34973
don't search the LD_LIBARY_PATH in case of a absolute path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1914 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-08 21:25:50 +00:00
aj
8ff91915bc
forget pin if it was wrong.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1912 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-08 07:11:40 +00:00
sth
34e3a42c8f
If you do pkcs15-init -C with the onepin option, you can now specify --pin and --puk instead of --so-pin and --so-puk (also allowed for backward compatibility)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1910 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-06 14:07:18 +00:00
nils
1249c9c2ab
fix starcos spk 2.3 "onepin" profile support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1908 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-28 20:06:04 +00:00
sth
61301ca546
Don't use 0 as input to test signature-verification
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1907 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-27 08:38:51 +00:00
nils
e15cc12e32
improved card detection + cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1906 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-24 08:54:16 +00:00
nils
9953d0b21d
fix some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1905 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-20 09:47:35 +00:00
nils
31c1c53d13
correct tries_left entries
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1904 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-19 19:50:52 +00:00
nils
3f5dc67981
print 'tries_left' only if the value is >= 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1903 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-19 19:47:34 +00:00
nils
60eeadb962
add support for sc_card_ctl(*, SC_CARDCTL_GET_SERIALNR, *) for
...
TCOS cards (and use it in the netkey support)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1901 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-17 19:27:49 +00:00
nils
5ebccf1842
rename "StarCOS" -> "STARCOS SPK 2.3"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1900 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-17 19:13:30 +00:00
nils
2df8086209
fix definition of SCARD_PROTOCOL_ANY
...
patch supplied by Ludovic Rousseau <ludovic.rousseau@free.fr>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1898 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-31 17:31:00 +00:00
nils
3ffc201082
fix tab indentation and adds the tries left field to the --list-pins output
...
patch supplied by Martin Paljak <martin@paljak.pri.ee>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1896 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-25 20:55:07 +00:00
nils
9bdd1f675c
bugfix: fix segfaults when using a pin-pad for pin verification
...
thanks to Joachim Bauch <jojo@struktur.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1895 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-25 20:45:32 +00:00
nils
fa0b71a99b
add "--raw" option
...
patch supplied by Jari Eskelinen <jari.eskelinen@iki.fi>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1894 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-21 14:26:16 +00:00
nils
c222271165
bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1893 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-21 14:24:39 +00:00
nils
652759a364
two small fixes to let pkcs15-init work with starcos spk 2.3
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1892 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-21 10:54:28 +00:00
nils
f8c603f559
update starcos spk 2.3 pkcs15-init support
...
change summary:
- some bug fixes
- support for global so-pins
- use so-pin (if present) to protect key creation etc.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1891 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-21 10:53:09 +00:00
nils
d6c98f7ae2
add support to force pcsc to use a certain protocol
...
patch supplied by Martin Paljak <martin@paljak.pri.ee>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1890 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-19 08:55:15 +00:00
nils
49b5366530
add additional atr
...
patch supplied by Martin Paljak <martin@paljak.pri.ee>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1889 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-19 08:41:51 +00:00
nils
e618b1ff28
move the emv driver to the end of list
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1888 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-19 08:39:18 +00:00
nils
bfe73f3b71
improve pkcs15-init + pkcs15-tool support for data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1887 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-14 13:43:17 +00:00
nils
0062708982
set ui_method if and only if it's not NULL
...
patch supplied by Michael Bell
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1885 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-05 22:34:05 +00:00
nils
73c9fcf03f
improved error detection
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1884 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-05 22:28:21 +00:00
nils
2ba6ad3954
set padding flags accordingly (for the decipher operation)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1879 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-27 19:14:06 +00:00
nils
8e3041850e
improve output for pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1878 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-26 19:18:17 +00:00
nils
bfd5b49436
pkcs15-init etc. support for pkcs15 data objects
...
patch supplied by Victor Tarasov <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1877 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-26 18:47:23 +00:00
aj
1e13a2e011
properly split LDFLAGS into LDADD and LDFLAGS to make parallel build work.
...
Thanks to Ville Skytt�.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1875 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-26 04:53:42 +00:00
aj
939d3a7406
Permission checks and support for several certificates in the
...
authorized_certificates file. Code written by Fritz Elfert.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1868 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-24 21:08:13 +00:00
nils
395c614483
fix default values for OIDs
...
patch supplied by Victor Tarasov <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1866 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-23 20:29:05 +00:00
nils
d0a64b651f
one more ATR for Oberthur 64K card
...
patch supplied by Victor Tarasov <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1864 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-23 16:52:41 +00:00
nils
0464df9235
fix ASN1 NULL handling and avoid malloc(0)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1862 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-23 16:11:23 +00:00
aj
c526488cb3
There is a problem with decipher() of the oberthur card driver.
...
Manifested when caller allocates more then needed memory for the result.
Thanks to the regression tests,
Viktor.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1861 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-22 20:52:39 +00:00
aj
ef89694f00
Bug found by Stef Hoeben.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1857 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-21 22:11:12 +00:00
aj
23ebb42bcf
Typo found by Stef Hoeben.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1856 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-21 22:10:04 +00:00
aj
c2459879d9
pkcs11-tool and pkcs15-crypt use libcrypto, so they need to link
...
with it. Found by Dirk Gouders.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1853 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-21 22:02:37 +00:00
aj
c9dfe962b9
Deal with new pcsc-lite code changes.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1845 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-20 20:52:21 +00:00
aj
16fc784ae9
try pkg-config, fall back to conventional code.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1843 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 19:37:42 +00:00
nils
aeb9c47c7e
try to get the card serialnr via sc_card_ctl (unless it has
...
been explicitly specified by the user)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1842 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 16:58:27 +00:00
nils
8d9ace2d7f
experimental support for card serial numbers
...
(at first only for starcos spk 2.3 and cardos m4)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1841 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 16:51:41 +00:00
nils
960ffce231
int -> size_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1840 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 16:18:30 +00:00
nils
86345157b4
fix compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1839 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 16:12:43 +00:00
nils
f8369b08ac
support OpenSSL version < 0.9.7 in card-oberthur.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1837 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-19 15:42:19 +00:00
aj
fe3914b397
kill two warnings about unused variables.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1835 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-14 22:11:53 +00:00
aj
268a302950
Add support for Estonian ID card. Written by Martin Paljak.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1834 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-14 21:13:54 +00:00
nils
78d32814a1
fix off-by-one bug, pointed out by Michael Bell
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1827 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-12 15:19:28 +00:00
nils
82ec09e92b
check return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1826 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-12 08:42:55 +00:00
nils
71e5f638c5
fix/cleanup passphrase input
...
Michael Bell <michael.bell@cms.hu-berlin.de> and Nils Larsch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1825 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-12 08:26:53 +00:00
aj
8f2f699a6c
add README and ask-for-pin.diff to the distribution.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1822 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-09 21:30:03 +00:00
aj
d607d51faa
Add missing scripts init0012 pin0001 pin0002 to distribution.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1821 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-09 21:28:06 +00:00
sth
1c51a8f0dd
Fix: if a card couldnt be read (e.g. inverted upside down), allow to retry it later when asked
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1817 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-09 15:33:35 +00:00
sth
cdee73adff
Fix: don't free anything in the connect() function because it can be called multiple times
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1816 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-09 15:31:08 +00:00
aj
1e371c92f6
a small patch to make openssh ask for a pin. and a README.
...
this patch is a hack, not production quality, and will not
be accepted by openssh. But a clean solution requires changes
in openssh, and that will not be easy.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1810 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-30 21:37:03 +00:00
aj
07ff3af231
Add current patch for openssh so it can ask for the pin.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1809 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-30 21:35:55 +00:00
nils
84f08c9544
fix TCOS decipher operation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1808 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-30 17:26:05 +00:00
aj
9fc8b4376a
openssl 0.9.7d and later require and support linking engines with -lcrypto.
...
for older versions we need to link with libcrypto.a or skip the engines
alltogether.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1807 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-29 20:34:03 +00:00
aj
eeeebc4117
small makefile improvement by Ville Skytt�
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1806 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-28 22:54:36 +00:00
nils
83635047e0
add support for Telesec NetKey cards (still experimental)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1805 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-28 16:42:03 +00:00
nils
9fb99e7051
use opt_passphrase, if present, before asking the user
...
patch supplied by Michael Bell <michael.bell@cms.hu-berlin.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1804 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-25 15:44:33 +00:00
nils
a7e042fdb3
Add two new commands: update_binary and update_record.
...
update_binary can be used to write arbitrary data data (entered as
hex values) to transparent files and update_record can be used to
do the same to record files.
Patch supplied by Victor Tarasov <vtarasov@idealx.com> and Nils Larsch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1803 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-24 17:25:23 +00:00
nils
446bf759d6
patch supplied by Victor Tarasov <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1802 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-24 17:03:17 +00:00
nils
7446d43ea5
add (partial) pkcs15 emu support for StarCert V2.2 cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1801 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-24 06:29:51 +00:00
nils
504fe28dc2
clean up access rights for updating pin/puk
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1800 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-22 17:46:45 +00:00
nils
a9b00f005f
use the padding character from the pkcs15 objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1799 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-21 21:20:29 +00:00
aj
b1859fc2cb
the older generation of oberthur card is not supported by the
...
current driver. better not detect them at all.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1798 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-20 13:37:04 +00:00
nils
6281259f04
fix usage of asn1 flags
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1797 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 20:49:54 +00:00
aj
b467a52c62
One more italian eID card, this time from gemplus.
...
reported by Antonio Iacono.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1796 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 09:33:53 +00:00
aj
23d92b8abd
Also add oberthur files to Makefile.mak.
...
oops, sorry for forgetting. Reported by novakv and
fixed by Nils Larsch.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1795 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 09:30:21 +00:00
aj
856cbdebfa
fix short options as well.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1794 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 09:12:50 +00:00
aj
52c1b2d700
Very basic and untested oberthur driver. Could possibly work,
...
as only non-essential parts stripped (or at least that was the plan).
Written by Viktor Tarasov of idealx.
All bugs by Andreas Jellinghaus, please don't blame anyone else.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1793 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-16 20:59:59 +00:00
aj
9b7cdbffad
cleanup debug/quiet/verbose handling.
...
now all tools accept "-v" for verbose
operation, and you can specify -v several
times to get more verbose i.e. debugging
output.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1792 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 20:13:12 +00:00
aj
4aa731e415
oops, forgot the select.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1791 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 20:04:53 +00:00
aj
209dad0217
fixed a small bug (!= instead of ==) and made
...
the code hopefully more readable.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1790 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 19:45:24 +00:00
nils
395a128e96
replace X509_NAME_oneline with X509_NAME_print_ex
...
Patch supplied by Gregor Kroesen and Nils Larsch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1789 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-09 18:40:33 +00:00
nils
7a88ff4d87
fix module name handling
...
patch supplied by Michael Bell <michael.bell@cms.hu-berlin.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1788 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-08 20:22:36 +00:00
nils
3560f1a49e
don't omit the first extension
...
Thanks to Gregor Kroesen <kroesen@rembrandtstr.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1787 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-30 16:23:59 +00:00
nils
47de5b0a4a
fix usage flag
...
Thanks to Peter Koch <pk.opensc@naev.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1786 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-21 10:15:30 +00:00
nils
0ea8a53c0e
only set the key_reference if present
...
Thanks to Andrej Komelj <akomelj@email.si>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1785 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-20 09:36:58 +00:00
nils
8147c22a93
call sc_select_file only if pin->path is actually set
...
Thanks to Andrej Komelj <akomelj@email.si>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1784 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-20 09:09:30 +00:00
nils
c35e006c34
add pkcs15-syn support for infocamere cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1783 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-04 18:13:36 +00:00
nils
d5697cfb6e
add pkcs15-syn support for infocamere card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1782 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-04 18:12:46 +00:00
nils
02cbe02bc2
include common object attributes in the sc_pkcs15emu_add_* api
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1781 c6295689-39f2-0310-b995-f0e70906c6a9
2004-05-04 17:58:04 +00:00
nils
475a29de67
proper checking of the SCardListReaders return values
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1780 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-27 17:41:02 +00:00
nils
f2bd9af6cc
use pin_cmd for sc_pkcs15_change_pin and sc_pkcs15_unblock_pin as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1779 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-23 17:29:24 +00:00
aj
338a7c4eff
oops. O_BINARY is for windows, not linux.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1778 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-22 07:04:50 +00:00
aj
4b4c20196b
better checking for null values.
...
found and fixed reported by Victor Tarasov <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1777 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 21:11:06 +00:00
nils
8cb6a3f94a
"--assert-pristine" workaround for Starcos cards (see comment in the patch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1776 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 20:11:56 +00:00
nils
f044157553
fix incorrect use of realloc (x = realloc(x, y) doesn't free
...
the x in case of a failure)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1775 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 18:10:58 +00:00
nils
b62825d319
fix memory leak
...
Discovered by Victor Tarasov (thanks)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1774 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 16:52:40 +00:00
aj
9e7b7c6e99
Add pkcs15-starcos to windows makefile.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1773 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 07:41:01 +00:00
aj
9fb7334e71
Open file with O_BINARY on windows.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1772 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 07:33:49 +00:00
nils
effbc2a7b6
remove pointer to freed secret object
...
Patch supplied by Victor Tarasov
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1771 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-18 18:42:47 +00:00
aj
2daf4c814d
Adds message digest and DER encoding if necessary.
...
Patch by Mathias Brossard <mathias.brossard@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1770 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-18 18:14:39 +00:00
aj
cc91de4a35
Converts all printf(...) tofprintf(stderr, ...) and condition output on all
...
non-error calls to the'quiet' (pre-existing) variable.
Patch by Mathias Brossard <mathias.brossard@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1769 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-18 18:06:25 +00:00
aj
fc6b6054bd
adds three options PIN, QUIET, VERBOSE to theengine allowing respectively to
...
set the PIN code, reduce output, augmentoutput. First one is obvious, the 2
others need the second patch to beuseful.
Patch by Mathias Brossard <mathias.brossard@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1768 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-18 18:05:05 +00:00
nils
5e080b8202
add support for split keys in engine_opensc.c (backported from the
...
opensc stuff in openssh)
Thanks to Neil Dunbar
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1767 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 22:21:28 +00:00
nils
b057f4055d
add support for "finalize" to pkcs15-init to activate the ACs for starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1766 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:25:30 +00:00
nils
564d07ebe6
bind the new starcos spk 2.3 support to the pkcs15init code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1765 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:23:26 +00:00
nils
846a14849e
initial pkcs15-init support for starcos spk 2.3 cards/tokens
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1764 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:20:08 +00:00
nils
6f1d885288
ensure that init_func is not NULL (even if the config file is not correct)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1763 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:15:05 +00:00
nils
ac5fea091a
update starcos spk 2.3 support (add create file + key gen)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1762 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:05:54 +00:00
aj
02314bdd7e
while we don't have code to extract a key, tread
...
extractable keys like non extractable ones.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1761 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-14 22:09:51 +00:00
aj
6e15c2421e
check parameters in strcpy_bp
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1760 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-29 20:34:30 +00:00
aj
37a957cbe4
cryptoflex 32k e-gate v4 also has on board key generation.
...
thanks for reporting to Pierre JUHEN.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1759 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-29 07:56:32 +00:00
aj
0b8ff3ce6a
it is legal to read all bytes of the file (e.g. offset 0, len 10, fil->len 10).
...
Bug found by Antonio Iacono.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1758 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-28 20:30:58 +00:00
aj
73d0922741
len is the number of character, we need to alloc len+1 for
...
the \0 terminator. Bug found by Victor Tarasov.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1757 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-28 20:26:43 +00:00
aj
6460502b98
add "rm" alias for "delete" and "exit" alias for "quit".
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1756 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-14 19:53:23 +00:00
sth
345d30a9d6
Moved the sc_pkcs15emu_xxx() functions to pkcs15_syn.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1755 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-08 13:59:27 +00:00
sth
9326f5f1c4
Allow file_app in struct sc_pkcs15_card to be NULL (may be the case for pkcs15-emulated cards)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1754 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-03 16:25:48 +00:00
aj
9333f53ffc
remove CARDOS_TYPE_ETOKEN_PRO, the name does not fit.
...
annotate atr with version number 4.0 / 4.01 / 4.01a.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1753 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-16 12:29:54 +00:00
aj
21b43fca83
added cardos M4.01a atr.
...
thanks to Laurian Gridinoc for reporting.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1752 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-15 23:00:04 +00:00
okir
28461ad360
- properly identify Italian eID card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1751 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-03 14:51:43 +00:00
okir
db7d3bac6e
- Properly handle max-length in PIN statements; added new stored-length:
...
PIN blah {
max-length = 8;
stored-length = 4;
}
Bug spotted by Victor Tarasov
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1750 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-03 10:25:20 +00:00
okir
393de85ac1
- Don't crash if card->serial_number is NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1749 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-02 10:24:31 +00:00
aj
20e2b1b94b
memset is defined in string.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1748 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-29 09:36:48 +00:00
okir
a75058ea89
- apdu wasn't completely initialized (Renzo Tomaselli)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1747 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-29 09:21:30 +00:00
okir
ec0d4db12b
- Allocate the right amount of memory when base64 encoding for PEM
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1746 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-27 09:03:15 +00:00
sth
5d6af9a68c
Added --cert-label option, usefull to specify the user cert label if you do a --store-private-key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1745 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-24 20:55:34 +00:00
aet
7a15956018
- Allow lists to end as ,;
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1742 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-22 12:37:26 +00:00
aet
9f6ffdbe0a
- Added a short introduction to scconf as an API
...
and a file format (Jamie Honan)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1741 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-22 10:13:40 +00:00
okir
9d49aa0769
- fix crash with pkcs11 module and token disconnect
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1740 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-20 11:21:40 +00:00
aet
2b4b08550b
- Revert previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1739 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-19 19:52:38 +00:00
aj
a9c914aa6b
make these libraries not standalone (pkcs15init, scam, scconf, scldap).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1738 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-19 18:54:15 +00:00
aet
4d915b987e
- Add versioning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1734 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-10 20:24:46 +00:00
aet
85d6bc7922
- Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1731 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 15:23:11 +00:00
sth
9779f07467
Fix: no keycaching if USE_PKCS15_INIT is not #defined
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1730 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 14:16:02 +00:00
aet
6473d2d2b3
- Unify with pkcs11.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1728 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 14:05:32 +00:00
aj
115bd355ed
config.h is not used in pkcs11.h or any file included by it.
...
but pkcs11.h is a public header file, so it shouldn't do so anyway.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1721 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 11:54:54 +00:00
aj
b9b1dbf603
cleanup a generated file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1720 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 11:53:44 +00:00
okir
6ef9257c54
- fixed placement of "function atexit" wrt shell exit trap handler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1719 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 10:50:52 +00:00
okir
4f6a7922d8
- fixed test case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1718 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 10:50:25 +00:00
sth
844ec9bc23
If the maximum allowed number of virtual slots per card is reached, then silently discard all objects that haven't been added yet instead of returning an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1717 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 09:47:23 +00:00
sth
7daafeb5da
Update to the new keycache functions for caching the user and SO PINs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1716 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 08:32:46 +00:00
okir
7bb64d0fcf
- fixed GPK16K key gen, as suggested by Chaskiel
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1715 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 10:11:22 +00:00
okir
f37cb0fce3
- When zapping the contents of a DF, write the whole file (data + padding)
...
in one go. Otherwise the GPK driver may barf if the file offset in
sc_update_binary isn't word aligned.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1714 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 10:10:34 +00:00
sth
9abadbc711
Increased the maximum number of PINs and removed some unused #defines
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1713 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:51:07 +00:00
sth
23aec107ad
Fixed some comments and added an NULL pointer test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1712 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:49:10 +00:00
okir
0d78f07499
- improved C_Decrypt testing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1711 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:32:58 +00:00
okir
30e04cef59
- Implemented keep-public-key and sc_pkcs15init_remove_object as
...
suggested by Victor Tarasov.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1710 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 14:30:24 +00:00
okir
13bf8814ef
- in sc_pkcs15_read_file, properly destroy objects in case of error (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1709 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 13:40:52 +00:00
okir
09b2730497
- implement sc_delete_record (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1708 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 13:33:32 +00:00
aet
759ed8df49
- pam_opensc rewrite checkpoint commit
...
- rename some functions
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1707 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-05 18:44:49 +00:00
okir
ec52d80408
- properly handle pubkey_label in key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1706 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-05 08:56:32 +00:00
okir
f6aa07d991
- Another fix from Remo wrt keygen_args.pubkey_label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1705 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-30 08:20:52 +00:00
okir
8a97a69d1d
- C_CloseAllSessions would block on some Win32 versions because it tried
...
to acquire the global pkcs11 mutex twice.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1704 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-30 08:00:10 +00:00
okir
f761d1504f
- small jcop driver fix from Chaskiel
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1703 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 23:21:47 +00:00
sth
292e13b7d9
Add the JCOP card code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1702 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 20:50:58 +00:00
aet
20a707002c
- Install unix.h and win32.h as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1701 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 16:54:31 +00:00
okir
b552bccfd3
- signature tests would fail on cards with several keys of different size
...
(fix by Chaskiel)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1700 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:15:04 +00:00
okir
beb86f351b
- util.c:connect_card() now locks the card; removed sc_lock calls from
...
calling applications (based on a bug report by Chaskiel)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1699 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:06:28 +00:00
okir
e03cc716e2
- When testing signatures, don't bail out of C_SignInit returns
...
CKR_MECHANISM_INVALID (Chaskiel Grundman)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1698 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:03:48 +00:00
okir
8a4a5f0331
- Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1696 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 12:28:37 +00:00
aj
4e48b7778a
new manpages for cardos-info and pkcs11-tool,
...
both written my Joe Phillips.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1695 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 12:01:43 +00:00
okir
5db7585bb0
- Minor bug fix in new_pin(), patch by Victor Tarasov
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1694 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 11:52:33 +00:00
sth
6952fb4030
Made a seperate function for the login functionality, and split test_kpgen_certwrite() into 2 parts, with a logout - unload lib - load lib - login between them
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1693 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-23 16:31:09 +00:00
sth
f017da5102
Fix: no copying done from in to out in case of SC_ALGORITHM_RSA_PAD_NONE padding (by Chaskiel)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1692 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-23 10:48:29 +00:00
aet
3dbb26ad6a
- Linking changes, don't link libpam to pam_opensc etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1691 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-22 22:07:02 +00:00
aet
e18b7117cd
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1690 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-20 14:41:05 +00:00
okir
78febf36cf
- in pin_cmd, don't overwrite max_length if set by caller
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1689 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 09:56:57 +00:00
okir
ae5dcea891
- created new function profile->ops->init_card for card-specific
...
initialization at the pkcs15 creation stage
- Added cryptoflex init_card from Stef. This function reads the card's
serial number from 3F000002 and puts it into the pkcs15 serial number
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1688 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 09:29:56 +00:00
sth
5bbe78a8fe
sleep(sec) = Sleep(1000 * ms) on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1687 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 06:52:38 +00:00
aet
7d3fc55736
- Minor build and C++ warning fixes
...
- pkcs15init: Use u8 for pin variable
declarations like libopensc does
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1686 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:37:34 +00:00
aet
f5aeedf554
- Obsolete
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1685 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:30:28 +00:00
aet
b706b298c9
- Revert parts of the previous patch, use void *func
...
instead of struct sc_reader_driver *(*func(void);
as _sc_driver_entry is used for both, reader and
card driver lists.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1684 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 19:13:13 +00:00
okir
5dda541b7e
- made apdu_masquerade functionality available to all readers, not just pcsc
...
- added new parameters max_send_size and max_recv_size, roughly corresponding
to the old max_le (SC_APDU_CHOP_SIZE) parameter. You can now set this
chop limit per driver class (pcsc, openct, ctapi), which sets
driver->max_{send,recv}_size. This value is copied to
card->max_{send,recv}_size in sc_connect_card, and can be overridden
by the card driver.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1683 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 16:35:28 +00:00
okir
af37c4e026
- do not access file afterdeleting it (S Bakkal)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1682 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 08:00:27 +00:00
aet
c2083ba406
- Add HAVE_UNISTD_H
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1681 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-17 12:15:11 +00:00
okir
4d378d1cb8
- properly set key usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1680 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-17 07:35:55 +00:00
okir
a569ef57c7
- Display better pin prompts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1679 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:41:04 +00:00
okir
bca2a9f233
- added GPK on-board keygen (based on code by Chaskiel)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1678 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:32:16 +00:00
okir
b2074743b2
- reduced sc_lock/unlock debug messages even more
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1677 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:31:12 +00:00
okir
0996f39779
- added ATR for Italian eID card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1676 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 11:07:32 +00:00
okir
8ed95baff1
- Updated previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1675 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 11:04:01 +00:00
sth
6b66973692
Prevent running off the end of the buffer if the asn.1 is invalid (Chaskiel G.)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1674 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 08:01:36 +00:00
aet
83a5cb1426
- Ach, forget the previous commit. Just use DBG(printf()); for
...
debugging purposes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1673 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-15 11:28:20 +00:00
aet
d9f8c7d879
- error/debug -> sc_error/sc_debug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1672 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-15 10:51:51 +00:00
aet
13030f54b1
- Minor bundle handling fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1671 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-12 09:32:34 +00:00
aet
d6713aff9a
- Minor naming convention harmonisation for pc/sc and ct-api
...
related things
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1669 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-10 14:52:58 +00:00