martin
fc3048f55e
Remove the (stupid) use_pinpad option from pkcs15 structures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2482 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:04:02 +00:00
nils
a20f0d576e
two small fixes from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2481 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-11 19:14:23 +00:00
nils
f8d6634339
set obj to NULL to avoid double free in case of an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2479 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 21:00:52 +00:00
nils
a3ae7da3ab
oberthur updates from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2471 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 07:53:59 +00:00
nils
45a9d05830
cleanup, mostly signed/unsigned issues
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2469 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-08 10:22:14 +00:00
nils
69ffd496b2
the apdu error codes are unsigned => change sc_check_sw and the card ops check_sw
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2467 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 17:18:10 +00:00
nils
44384eccbf
- Initial support for TokenUpdate;;lastUpdate field. Change pkcs15 caching
...
code to use the card serial number and lastUpdate field (if present) to
specify the cache file.
- consistently use unsigned data types to specify object types
- make sc_pkcs15emu_get_df a local function (it's not used outside
pkcs15-syn.c and honestly I see no reason to export it).
- start of a new ChangeLog file (with some intial entries)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2466 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 16:24:35 +00:00
nils
b3992394fc
more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2465 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 15:03:39 +00:00
nils
ed3ba0231e
improve generalizedTime support + more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2464 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:28:20 +00:00
nils
23802d825e
properly initialize sc_asn1_entry elements + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2463 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:24:43 +00:00
sth
b12711e6b3
Reverse the export of function parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2462 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-04 06:29:35 +00:00
nils
eab657fb52
change sc_bin_to_hex separator parameter from char to int as character constants are integers in c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2461 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 18:43:40 +00:00
nils
4dd3c3f382
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2460 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 18:29:21 +00:00
sth
41889b27a1
Export function parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2458 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:07:09 +00:00
sth
37cd955055
Allow to seach a data object by it's application OID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2457 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:05:09 +00:00
sth
d0f267468e
Added function sc_compare_oid()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2456 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 09:00:00 +00:00
nils
94d899931e
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2455 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-02 21:13:06 +00:00
nils
e16485826e
fix memory leak; patch supplied by Imanishi Masayuki <Masayuki.Imanishi@jp.sony.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2446 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-20 18:19:40 +00:00
aj
66b080f154
sorry, not compatible :(
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2441 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-19 21:03:03 +00:00
aj
65ab52d9cf
add new atr.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2438 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 22:33:27 +00:00
nils
a1261369e2
only copy resp if the operation was successful
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2437 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 21:30:30 +00:00
nils
817e26a362
starcos has a GET CHALLENGE command ... useless flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2427 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-18 07:26:41 +00:00
aj
69c25e325a
oops, ldap/scam is no more.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2424 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:31:37 +00:00
aj
4c9cb46f72
remove scldap.conf, and pkg-config files for libscldap and libscam.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2422 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-17 20:23:25 +00:00
nils
d88f377747
interpret rec_nr == 0 as a request to create a new record, fix for bug report #21
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2398 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-12 21:03:47 +00:00
nils
b9cf818d56
in case of T0 the Le value is omitted for case 4 APDUs; patch supplied by richard.musil@bigfoot.com
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2397 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-11 21:31:48 +00:00
nils
eddd1e3ab6
fix file descriptor byte and ef_structure type; patch supplied by richard.musil@bigfoot.com
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2396 c6295689-39f2-0310-b995-f0e70906c6a9
2005-07-11 21:28:55 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
okir
cec660fda1
- More cyberflex fixes from Martin Buechler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1665 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-09 13:57:20 +00:00
okir
85fa4ed0da
- Matched Cyberflex patch from Martin Buechler. Created a new
...
driver named cyberflex which shares a lot of code with the original
flex driver. This is a lot cleaner than having to create if/else
monsters.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1661 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-08 10:54:55 +00:00
aet
4f30699b0d
- Avoid breaking source compatibility, add char *errmsg to scconf_context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1656 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 14:09:15 +00:00
okir
ff9a45569a
- scconf_parse and scconf_parse_string now return an error message if
...
something went wrong
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1655 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 12:07:01 +00:00
okir
dcce086a0e
- Fix the "get_info failed" error; based on a patch by Ludovic Rousseau.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1653 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 11:11:14 +00:00
aet
e18283d578
- Fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1649 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-02 17:51:37 +00:00
okir
a2c9afec7f
- fixed problem with pubkey encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1643 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:37:29 +00:00
okir
3c89fc8edb
- improved support for CHOICE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1642 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:35:17 +00:00
aet
d12b21f633
- Remove all references to usbtoken, use OpenCT instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1639 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-25 11:17:02 +00:00
sth
af462ab212
Removed the exceptional (and incorrect) handling of the signature inputs of 16 and 20 bytes with pkcs11's CKM_RSA_PKCS11 signaturemechanism; and made sc_pkcs15_compute_signature() a bit more powerfull: if a digestinfo+hash input is given but the card only accepts hashes, the digestinfo is removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1636 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-23 16:11:32 +00:00
sth
30fba619b9
Added an error code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1634 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-23 15:33:56 +00:00
aet
0cddfbaf46
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1631 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 20:46:15 +00:00
okir
43da7aac4e
- Improved OpenPGP handling; we're now able to sign things
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1625 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:41:28 +00:00
okir
59c38ee7cd
- Append newline to error/debug messages if not supplied by caller
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1624 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:40:22 +00:00
okir
624e345a58
- in sc_format_path, initialize path->count = -1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1623 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:40:01 +00:00
okir
a91824eafa
- increase SC_MAX_PIN_SIZE to 256 (OpenPGP cards have 254 max)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1622 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:39:38 +00:00
okir
28a5eb0204
- if ctx->suppress_errors is non-zero, log suppressed error messages
...
at least to the debug log
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1621 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:39:18 +00:00
okir
1648a1cdea
- SW 6A88 (referenced data not found) is now translated to
...
SC_ERROR_DATA_OBJECT_NOT_FOUND
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1620 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:38:43 +00:00
okir
9ee5c76a4d
- Support direct encoding of certs in the CDF
...
- Added prototypes for sc_der_{copy,clear}
- Changed sc_pkcs15_print_id to return const char *
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1613 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:31:52 +00:00
okir
1780e10bf2
- Somewhat improved debugging output
...
- sc_pkcs15_print_id changed to sprintf to a buffer rather than printing
to stdout.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1612 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:30:44 +00:00
okir
519c1e8e55
- The changed code in asn1.c requires that the PrKDF subClassAttributes
...
for private{RSA,DSA}Key be marked OPTIONAL (our handling of CHOICE is
still somewhat limited)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1611 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:29:54 +00:00
okir
ed5d12800d
- Read and write CDF entries with directly encoded certificates
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1610 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:28:02 +00:00
okir
12386d65c9
- When encoding a path, either encode _neither_ index/count, or both.
...
- Added new functions sc_der_copy, sc_der_clear to handle DER blobs
- Somewhat improved debug output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1609 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:22:52 +00:00
aet
0efe4659ed
- snapshot build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1608 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-17 18:54:10 +00:00
aet
c6f902911f
- Test commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1605 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-16 16:24:16 +00:00
sth
3b746f0b5e
Add room for SW1-SW2 in case of maximum reply size (256 bytes)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1604 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-14 10:14:54 +00:00
okir
c85357baf9
- remain backward compatible - apdu_masq patch shouldn't break existing
...
config files that use apdu_fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1598 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:20:02 +00:00
okir
8e1443071c
- merged apdu_masq patch from Chaskiel Grundman
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1597 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:16:25 +00:00
okir
b3b3b02cf0
- Updated, now registers key objects as well (untested)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1590 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:35 +00:00
okir
36f170c2e7
- OpenPGP card now supports a fake file hierarchy (basically all objects
...
and constructed objects reprented as DFs and EFs)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1589 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:00 +00:00
aet
bb97c0d094
- Add new files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1588 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 13:59:27 +00:00
okir
13a11083e1
- initialize tries_left field to -1 when parsing AODF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1587 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:31:54 +00:00
okir
16ec507738
- Rewrote sc_pkcs15_bind_synthetic a little
...
- Started work on pkcs15 emulation for OpenPGP card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1584 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:27:14 +00:00
okir
d91ecdc245
- Moved sc_pkcs15_bind_synthetic to a separate file
...
- Moved sc_pkcs15_print_card to ../tests/print.c
- added dll_handle and preferred_language fields to p15card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1583 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:26:24 +00:00
okir
0f32616c20
- added initial support for openpgp card driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1580 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:22 +00:00
okir
99e999d64c
- added sc_get_data/sc_put_data
...
- added openpgp card driver
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1579 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:02 +00:00
okir
c072c5e0fe
- added sc_get_data/sc_put_data
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1578 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:41 +00:00
okir
ef4f132e61
- added SC_ERROR_DATA_OBJECT_NOT_FOUND
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1577 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:09 +00:00
okir
323240fa44
- small fix in mcrd_finish
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1576 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 15:43:19 +00:00
okir
d3d7664c11
- Changed the internal object search machinery quite a bit so it
...
can search for more than one type of object at the same time.
- When enumerating a DF as part of the search, no longer ignore all
errors.
- When parsing a DF, SC_ERROR_ASN1_END_OF_CONTENTS really means
we've just reached the end of data in the file, so return 0
instead
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1573 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:43:21 +00:00
okir
6e9412cd98
- When encountering the end of a SEQUENCE, while there should be
...
more items, we used to return SC_ERROR_ASN1_END_OF_CONTENTS.
That error code is reserved for the real end of content markers
though. Changed the return code to SC_ERROR_ASN1_OBJECT_NOT_FOUND
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1572 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:38:05 +00:00
okir
c29e7d8510
- don't call sc_module_get_address when we dont have a dll handle
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1569 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-28 12:50:43 +00:00
okir
5a27b4e81e
- Changed ui API to offer more knobs and dials
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1567 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-24 13:18:17 +00:00
aet
c693c4799c
- Merging between Makefile.am<>Makefile.mak
...
- Add ui.h to main distribution tarball, snapshots have
been broken for a few days
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1566 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-23 09:12:48 +00:00
aet
e62eea5351
- Minor cleanups and a warning fix
...
- sc_release_context: free ctx->preferred_language if set
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1565 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 18:16:21 +00:00
aet
28fcfde1fd
- Replace WIN32 with HAVE_UNISTD_H instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1564 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:51:41 +00:00
sth
23d1ca554e
Let the new UI code compile under Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1563 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:43:27 +00:00
okir
931a1dd28a
- added error/debug message support to ui.c
...
- sc_error/sc_debug now use the new ui code
- added language support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1559 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:49:59 +00:00
okir
5791395e74
- Added new user interface code (not used yet)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1553 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:12:32 +00:00
okir
a644d83d68
- added message for SC_ERROR_CANNOT_LOAD_MODULE
...
- changed the wording of some SC_ERROR_KEYPAD_* messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1551 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:50 +00:00
okir
72788e32ec
- added SC_ERROR_CANNOT_LOAD_MODULE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1550 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:19 +00:00
okir
9e70efba8a
- sc_pkcs15_find_pin_by_reference now searches by reference and path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1548 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:02:48 +00:00
okir
70597d4b14
- fixed change/unblock pin with implicit test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1547 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:59:11 +00:00
okir
e7f0dbb4a8
- support UPDATE ACLs when creating a DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1545 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:31:45 +00:00
okir
c20fcf5e7b
- bump max number of apps per card to 8
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1544 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:05:03 +00:00
okir
aae679b28a
- tcos_card_ctl shoudlnt complain about unknown cardctls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1543 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:02:37 +00:00
okir
927ae344cc
- fix cflex key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1536 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 08:39:40 +00:00
aet
603ccec619
- Fixed nightly snapshot generation
...
- Link keycache.h to src/include/opensc
- Move mutex function declarations to opensc.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1525 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 21:56:56 +00:00
okir
734bceb682
- Error logging changes: replace ctx->log_errors with ctx->suppress_errors,
...
so that we can nest error suppression using suppress_errors++/suppress_errors--
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1518 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:56:50 +00:00
okir
c323d0a082
- the previous patch was bad; fixed it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1516 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:02:51 +00:00
okir
3d283fd925
- fixed a bug in the previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1507 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:52:03 +00:00
okir
45e820cdac
- added sc_pkcs15_find_prkey_by_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1506 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:35:27 +00:00
okir
ecc469d570
- added some more errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1505 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:52 +00:00
okir
efb19cafe6
- slightly enhanced debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1504 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:38 +00:00
okir
bf7e801fac
- new path functions: sc_append_file_id, sc_compare_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1503 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:18 +00:00
okir
106351eb5c
- some commands used the wrong APDU case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1498 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-11 12:41:28 +00:00
aet
a61c95e204
Minor cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1494 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-08 06:46:48 +00:00
sth
e87ba3c387
Fix: add room for a 'last-flag' object (Ivo Pieck)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1490 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-06 14:22:03 +00:00
sth
2fa013edf0
Fix: don't link by default with openssl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1480 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-30 09:19:06 +00:00
aet
fe9eac7ad2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1467 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
345914e9e2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1466 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
0077a0876d
Fix various C compiler warnings and C++ errors / name conflicts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1463 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-25 09:33:16 +00:00
sth
cdc2f67c60
Bugfix: return SC_ERROR_OUT_OF_MEMORY if malloc() fails (Kevin Stefanik)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1445 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-16 06:36:41 +00:00
aet
c69ef430ee
C++ warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1438 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 22:20:26 +00:00
sth
68c885ebe1
Added version info to the Win32 binaries, and set the version number to 0.8.0.0 (4 numbers seems to be needed)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1437 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 14:08:29 +00:00
sth
e6f3f9bb08
Increase log buffer size, so that 255 hex bytes still can be logged
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1429 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-08 13:38:07 +00:00
sth
842b5cd2f5
Fix: let this card driver do the unblocking itself, don't send it to the iso7816 code (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1419 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 20:16:52 +00:00
aet
5bd87ee0d0
Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1418 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 07:22:10 +00:00
aet
e66bb1ef16
Remove gcc specific code from usbtoken/openct drivers, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1417 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-04 16:41:49 +00:00
aet
03de5ba32f
error -> sc_error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1414 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 21:31:14 +00:00
okir
3d7e8a964f
- Properly detect CarDOS lifecycle MANUFACTURING and report it as "OTHER"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1413 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:55:53 +00:00
aet
de2d058617
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1412 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:21:42 +00:00
aet
597877eb49
Move #include <windows.h> to winconfig.h in
...
order to minimize win32 specific code sections.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1411 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:18:57 +00:00
aet
c0c3c339d7
SC -> OPENSC, old legacy from the libsc days
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1409 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 17:59:08 +00:00
aet
5616dba08e
- Stop using unflexible automake conditionals when
...
building PC/SC, OpenCT or USBToken support,
use ifdef's directly in source.
- Because of above, add HAVE_PCSCLITE for winconfig.h
- Remove unnecessary includes for log.h, opensc.h and
errors.h in libopensc sources, they're already taken
care by internal.h.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1406 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 09:28:55 +00:00
aet
bac2b601a9
Move scdl to it's own subdirectory, although it's merely
...
for internal purposes only.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1403 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-01 08:43:38 +00:00
aet
bd54ea7a62
- Move all dynamic loading related code to src/common/scdl.c,
...
probably needs some more work.
As a side bonus, we now have a working CT-API support for MacOS X.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1402 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:29:52 +00:00
aet
5835e752b5
Cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1401 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:26:59 +00:00
okir
dc42cd3fa7
- added sc_print_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1400 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:30 +00:00
okir
8fcab2199b
- slightly improved debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1399 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:17 +00:00
okir
ef42ba2010
- path cache wasn't cleared on error in flex_select_file
...
- slightly better debugging output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1398 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:54:45 +00:00