Commit Graph

2349 Commits

Author SHA1 Message Date
aj 9ad77a8155 "doc" does not work well, it is the subdirectory name.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2532 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-02 09:51:47 +00:00
aj f1dc04f5c2 dist-hook: is too late, need to generate the documentation
before automake "make dist" copied files around.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2531 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-02 09:29:55 +00:00
aj 25cb1a3ca1 fix compiling with openssl installed in a non-standard location.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2530 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 20:51:54 +00:00
aj bde55826ed proper documentation cleanup.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2529 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 17:18:02 +00:00
aj ff62b88e1c big configure update.
use pkg-config for openct, openssl, pcsc.
do not compilke libp11. do not compile sslengines.
remove scdl. use libltdl instead.
use libassuan.m4 macro for m4 detection.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2528 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 14:01:58 +00:00
aj 7770e89115 remove trac.css from svn. add script to generate documentation (old one).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2527 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 14:00:23 +00:00
aj 9c12242fc8 big documentation update. remove html from svn.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2526 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 13:59:41 +00:00
sth d8639b16ce The lastUpdate field is in the EF(TokenInfo), not in the ODF (thx Nils)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2525 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-29 20:48:00 +00:00
sth 891ed0f197 Added Netscape/Mozilla specific types etc.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2524 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-29 12:49:53 +00:00
aj 96519c6b72 stop building libp11 and the ssl engines.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2523 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-28 20:18:52 +00:00
sth bae2b51e01 Fix in new_file(): if there's already a key with such ID, take next one
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2522 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:35:33 +00:00
sth bb2506cff9 Return the real pinref
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2521 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:33:52 +00:00
nils 89dacc6c82 fix compiler warning
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2520 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:18:24 +00:00
sth ed9e925989 Improved ACs
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2519 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:11:46 +00:00
nils 3b6a90000a add missing include, removed unused variable and initialize variable
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2518 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:59:01 +00:00
nils 9cbac71de9 decode preferredLanguage field if present
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2517 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:54:43 +00:00
ludovic.rousseau 850cea465b move PKCS11_open_session() from libp11-int.h to libp11.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2516 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 14:25:23 +00:00
sth bd76165319 Have the option not to update the ODF (the lastUpdate field), this is usefull for cards that don't have an ODF that is un-writable or too small
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2515 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 09:50:48 +00:00
nils eec0e22b03 de-/encode printable strings as well
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2514 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 08:00:44 +00:00
nils 260723da53 cleanup
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2513 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 21:16:55 +00:00
sth 8e3dee0585 Added set_userpin_ref() to link a PIN value to a PIN ref for an existing user PIN
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2512 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 09:01:57 +00:00
sth 858ea38e97 Add support for SetCOS 4.4.1 card. Add support for deleting pkcs15 objects.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2511 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 12:53:17 +00:00
nils 1d05f32bc4 mark card/profile as dirty when an object has been deleted
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2510 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:54 +00:00
nils a28aa1f917 avoid warning
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2509 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:02 +00:00
sth 26108b0280 Added support for deleting pkcs15 objects (if the pkcs15init card driver for that card supports it)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2508 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:23:46 +00:00
nils 8ba443d1d9 fix parameter type
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2507 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:22:25 +00:00
sth b5e2a2afff Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2506 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:20:13 +00:00
nils b9efe849eb add support for serial number in card-oberthur.c; supplied by Tarasov Viktor <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2505 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:17:44 +00:00
nils 0d7b025a4b add missing variable
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2504 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:15:57 +00:00
martin 7ffd68a9ee Make the pcsc pinpad option work.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2503 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:44:07 +00:00
martin 924a118501 Don't cache pins that protect a userconsent slot.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2502 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:39:43 +00:00
nils 2fb54dd374 use compile time initialization for the iso_ops structure
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2501 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 13:39:18 +00:00
nils 08b415a5a3 use non-repudiation flag only for the signature key
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2500 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 11:06:18 +00:00
nils f855074c27 check result of sc_file_dup + some cleanup
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2499 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 17:56:56 +00:00
nils f317e2966a sc_file_dup(): copy attributes as well, use explicit assignement and check return values
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2498 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 06:39:16 +00:00
nils 7ff54c7e2e use calloc instead of malloc + memset
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2497 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 22:43:01 +00:00
sth edb11bd2ea Fix: object type contains not only the class
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 21:14:19 +00:00
sth 6c20b6a6ad Undo-ing accidential commit of card-belpic.c and pkcs15-sec.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2495 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 14:01:54 +00:00
sth f43d52476e The lengths of the ASN.1 entries are used outside the if blocks -> declare them outside the blocks
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2494 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 13:55:36 +00:00
ludovic.rousseau 25d3148ef6 use _LIB11_H instead of _LIB11_INT_H
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2493 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 08:39:29 +00:00
ludovic.rousseau df86e3f8ac PKCS11_CTX_unload(): do not call ERR_free_strings() and
ERR_remove_state() since OpenSSL strings may be used by the application
and we can't know


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2492 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 07:06:13 +00:00
nils b143ac5637 add support for signature generation with a decryption key; patch supplied by Peter Koch <pk_opensc@web.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2491 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 21:35:13 +00:00
nils 9a49854fdc use ERR_LIB_USER instead of 42
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2490 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 12:10:24 +00:00
ludovic.rousseau decb9297dd add PKCS11_change_pin() function
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2489 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 11:05:09 +00:00
nils 305b68f10b summary:
- do not use key enumeration as a test of login status, as this will
  not work for all PKCS#11 libraries
 
- replace magic number used for PIN length with a constant

- add documentation for set_pin, as well as testing for NULL input
  and checking for strdup failure

- made the global variable 'pin' static (TODO check if other global
  variables can be declared static)

- if a PIN is allocated, then check for NULL

- if a PIN is to be freed, then whiten the memory first

- if the token has a secure authentication path, then the PIN shoud be
  NULL (as per PKCS#11 v2, p. 126)

- replaced some fprintf statements with 'fail' (TODO all
  fprintf calls should be replaced with log functions)

Patch supplied by Geoff Elgey <Geoff.Elgey@quest.com>


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2488 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 10:58:16 +00:00
nils d6e5facb0d make old compilers happy
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2487 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:33:43 +00:00
nils 5adbeff6e0 fix typo
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2486 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:00:28 +00:00
martin 59e1f37bb2 * Clean up some whitespace
* class2->part10
 * Make pinpad detection a configurable option  


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2485 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:26:46 +00:00
martin 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