nils
1d05f32bc4
mark card/profile as dirty when an object has been deleted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2510 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:54 +00:00
nils
a28aa1f917
avoid warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2509 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:02 +00:00
sth
26108b0280
Added support for deleting pkcs15 objects (if the pkcs15init card driver for that card supports it)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2508 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:23:46 +00:00
nils
8ba443d1d9
fix parameter type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2507 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:22:25 +00:00
sth
b5e2a2afff
Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2506 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:20:13 +00:00
nils
b9efe849eb
add support for serial number in card-oberthur.c; supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2505 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:17:44 +00:00
nils
0d7b025a4b
add missing variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2504 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:15:57 +00:00
martin
7ffd68a9ee
Make the pcsc pinpad option work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2503 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:44:07 +00:00
martin
924a118501
Don't cache pins that protect a userconsent slot.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2502 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:39:43 +00:00
nils
2fb54dd374
use compile time initialization for the iso_ops structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2501 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 13:39:18 +00:00
nils
08b415a5a3
use non-repudiation flag only for the signature key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2500 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 11:06:18 +00:00
nils
f855074c27
check result of sc_file_dup + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2499 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 17:56:56 +00:00
nils
f317e2966a
sc_file_dup(): copy attributes as well, use explicit assignement and check return values
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2498 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 06:39:16 +00:00
nils
7ff54c7e2e
use calloc instead of malloc + memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2497 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 22:43:01 +00:00
sth
edb11bd2ea
Fix: object type contains not only the class
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 21:14:19 +00:00
sth
6c20b6a6ad
Undo-ing accidential commit of card-belpic.c and pkcs15-sec.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2495 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 14:01:54 +00:00
sth
f43d52476e
The lengths of the ASN.1 entries are used outside the if blocks -> declare them outside the blocks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2494 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 13:55:36 +00:00
ludovic.rousseau
25d3148ef6
use _LIB11_H instead of _LIB11_INT_H
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2493 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 08:39:29 +00:00
ludovic.rousseau
df86e3f8ac
PKCS11_CTX_unload(): do not call ERR_free_strings() and
...
ERR_remove_state() since OpenSSL strings may be used by the application
and we can't know
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2492 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 07:06:13 +00:00
nils
b143ac5637
add support for signature generation with a decryption key; patch supplied by Peter Koch <pk_opensc@web.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2491 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 21:35:13 +00:00
nils
9a49854fdc
use ERR_LIB_USER instead of 42
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2490 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 12:10:24 +00:00
ludovic.rousseau
decb9297dd
add PKCS11_change_pin() function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2489 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 11:05:09 +00:00
nils
305b68f10b
summary:
...
- do not use key enumeration as a test of login status, as this will
not work for all PKCS#11 libraries
- replace magic number used for PIN length with a constant
- add documentation for set_pin, as well as testing for NULL input
and checking for strdup failure
- made the global variable 'pin' static (TODO check if other global
variables can be declared static)
- if a PIN is allocated, then check for NULL
- if a PIN is to be freed, then whiten the memory first
- if the token has a secure authentication path, then the PIN shoud be
NULL (as per PKCS#11 v2, p. 126)
- replaced some fprintf statements with 'fail' (TODO all
fprintf calls should be replaced with log functions)
Patch supplied by Geoff Elgey <Geoff.Elgey@quest.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2488 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 10:58:16 +00:00
nils
d6e5facb0d
make old compilers happy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2487 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:33:43 +00:00
nils
5adbeff6e0
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2486 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:00:28 +00:00
martin
59e1f37bb2
* Clean up some whitespace
...
* class2->part10
* Make pinpad detection a configurable option
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2485 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:26:46 +00:00
martin
99c3efb3ed
Add a check for reader.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2484 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:14:06 +00:00
martin
0f0f28107c
* Remove PAM_README as it is not valid any more
...
* Remove dead files from Solaris package script
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2483 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:10:44 +00:00
martin
fc3048f55e
Remove the (stupid) use_pinpad option from pkcs15 structures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2482 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:04:02 +00:00
nils
a20f0d576e
two small fixes from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2481 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-11 19:14:23 +00:00
nils
4d48735d10
initialize sc_pkcs15init_operations at compile time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2480 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 21:31:18 +00:00
nils
f8d6634339
set obj to NULL to avoid double free in case of an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2479 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 21:00:52 +00:00
nils
25950cb01a
use inttypes.h instead of stdint.h; disable read_ssh_key when no uint32_t is available
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2478 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 19:04:08 +00:00
nils
39373c1ec8
initialize the oid object, patch supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2477 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-10 18:20:04 +00:00
nils
6dc33041aa
include sys/types.h if stdint.h doesn't exist + fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2476 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 21:27:50 +00:00
nils
86ad1a7c2b
check for stdint.h and remove checks for pam stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2475 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 21:13:50 +00:00
nils
3da0e1b8cd
allow up to 64 byte long pins
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2474 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 18:21:50 +00:00
ludovic.rousseau
9ea0db132e
PKCS11_login(), PKCS11_init_token(), PKCS11_init_pin():
...
use "const char *" instead of "char *" for pin arguments
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2473 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 11:51:17 +00:00
ludovic.rousseau
d1311aa965
pkcs11_strdup(): use "return NULL;" instead of just "NULL;"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2472 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 11:48:39 +00:00
nils
a3ae7da3ab
oberthur updates from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2471 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-09 07:53:59 +00:00
sth
2b6a2cb19c
One of the memset()s appears to write too much zeros on some systems -> put all the data in a struct and memset() this instead of each field separately. Thx to JP Szikora for notifying.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2470 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-08 14:25:19 +00:00
nils
45a9d05830
cleanup, mostly signed/unsigned issues
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2469 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-08 10:22:14 +00:00
nils
148b7900f7
Add support for the lastUpdate field to pkcs15init. Add flag to
...
indicate whether some data has been changed to the profile structure
and set the flag in the functions which change the card contents.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2468 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 19:07:24 +00:00
nils
69ffd496b2
the apdu error codes are unsigned => change sc_check_sw and the card ops check_sw
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2467 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 17:18:10 +00:00
nils
44384eccbf
- Initial support for TokenUpdate;;lastUpdate field. Change pkcs15 caching
...
code to use the card serial number and lastUpdate field (if present) to
specify the cache file.
- consistently use unsigned data types to specify object types
- make sc_pkcs15emu_get_df a local function (it's not used outside
pkcs15-syn.c and honestly I see no reason to export it).
- start of a new ChangeLog file (with some intial entries)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2466 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 16:24:35 +00:00
nils
b3992394fc
more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2465 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 15:03:39 +00:00
nils
ed3ba0231e
improve generalizedTime support + more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2464 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:28:20 +00:00
nils
23802d825e
properly initialize sc_asn1_entry elements + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2463 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 07:24:43 +00:00
sth
b12711e6b3
Reverse the export of function parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2462 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-04 06:29:35 +00:00
nils
eab657fb52
change sc_bin_to_hex separator parameter from char to int as character constants are integers in c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2461 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-03 18:43:40 +00:00