Commit Graph

342 Commits

Author SHA1 Message Date
okir b86d2e994b - First shot at pkcs15 data objects from Danny De Cock
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@788 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 10:17:01 +00:00
okir e9c8806c75 - properly set the TokenInfo label from user input
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@752 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:56:17 +00:00
okir 27c2369cee - make sure we don't assign the same ID more than once
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@749 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:25:31 +00:00
okir eaebdec8b0 - Change the way we handle default transport keys, attempt to reduce the
risk of users entering the wrong keys and locking their cards. Here's how
  we do it:
   - ask the card driver (via cardctl GET_DEFAULT_KEY) for default key
   - invoke the front-end's get_key callback. If the card driver gave us
     a default key, pass it as default value
   - front end is free to use default key as-is, or prompt user


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@743 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:56:34 +00:00
okir 8ee38b9567 - handle SC_ALGORITHM_NEED_USAGE flag
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@706 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:28 +00:00
aet 1d2c9e4c48 Cleanups for initial win32 port, untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@696 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 14:04:52 +00:00
okir 638a5b307c - implemented generic erase_card functionality
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@667 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 18:18:21 +00:00
okir 5b40de43ed - various changes for on-board key generation
- key download and key generation for eToken works now


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@659 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:58:04 +00:00
okir 954cfb9f8e - first steps toward eToken key download
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@640 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-07 20:29:07 +00:00
jey 7977f48aa3 - Protected OpenSSL includes with #ifdef HAVE_OPENSSL
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@637 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 13:38:03 +00:00
okir 1b79b017e3 - started to implement on-token key gen support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@636 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 09:18:53 +00:00
okir 3eeaa8f0b8 - fixed bad return value in do_init_app
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@625 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 19:42:50 +00:00
okir 0c07f24de0 - added some eToken code (not functional yet)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@622 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:51:03 +00:00
jey 7c94d7d8d3 - Several patches to fix behaviour on 64-bit architectures (by
Jochen Friedrich)
- Fixed one bug in sc_copy_asn1_entry(), one in
  sc_pkcs15init_add_object() and one in pkcs15-crypt
  (patches also by Jochen)


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@609 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-26 12:31:23 +00:00
aet 25cf9756ed Minor GCC warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@606 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-20 09:19:41 +00:00
okir 74b7e39263 - allow setting the cert_info authority flag
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@583 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 18:37:57 +00:00
okir c66dcb5f33 - changed do_select_parent per request from Juha. Hope this doesn't break
anything... :)


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@581 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 08:00:52 +00:00
aet 3dccd63989 - C++ support. Compiles with gcc/g++ for Linux, otherwise
completely untested.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@574 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 14:23:31 +00:00
okir 6b08ebf2eb - fixed DF handling
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@573 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 10:01:01 +00:00
jey 546f920fc1 - PKCS #15 objects and DFs are now stored with linked lists
in struct sc_pkcs15_card; this way we can have 'floating'
  objects that don't belong in any DF, for e.g. generating
  public key objects from certificates
- Removed some unused function prototypes


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@572 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 09:22:44 +00:00
okir b08c5ef702 - bug in check_key_compatibility()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@561 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:12:26 +00:00
okir 2a3e6e273d - starting to support extractable keys
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@557 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:47:18 +00:00
okir 596220e821 - pkcs15-init does not require openssl anymore
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@523 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-15 13:42:10 +00:00
okir 55a14b0ebf - all sc_pkcs15init_store_foobar functions now take an additional struct sc_pkcs15_object ** argument
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@516 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:14:12 +00:00
okir 01d4f00dea - SO PIN is now optionally: if you want to use it, pass a PIN to
sc_pkcs15init_add_app. If you don't, don't.
- sc_pkcs15init_erase_card checks whether the erase_card funcion ptr is NULL
- check SO pin len in sc_pkcs15init_add_app
- In sc_pkcs15init_store_pin, if the caller didn't specify the auth_id,
  select one automatically
- added sc_pkcs15init_unbind


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@499 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:49:39 +00:00
okir 13ab0f5993 - store SO PIN entry in AODF
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@493 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:29:37 +00:00
jey 60fc3811eb - Added support for user-defined serial numbers in
pkcs15-init and PIN flags in profiles


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@485 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 13:15:31 +00:00
jey 74d0b3d729 - Added user PIN finding to sc_pkcs15init_store_certificate()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@482 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 14:52:50 +00:00
okir c1a8dc8c23 - implemented sc_pkcs15init_get_{serial,amnufacturer}, fixed bug
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@466 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:56:21 +00:00
jey 41b184855b - Fixed a bug in sc_pkcs15init_bind()
- Added PIN code padding in do_verify_pin()


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@461 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:00:27 +00:00
aet 076a26bbac Rework the header structure
Currently fails to compile, unless you symlink
all the necessary headers to src/include/opensc
by yourself.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@459 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 13:48:00 +00:00
aet d81d10ba90 Upgrade sources to use new headers, part #1
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@458 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:44:51 +00:00
okir 1b113614b3 - miniscule API changes so that applications don't need to include profile.h anymore
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@454 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:05:50 +00:00
jey dc444cde54 - Cryptoflex now works with the new pkcs15init stuff
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@452 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 22:10:36 +00:00
jey e5496e9be9 - Partial support for PKCS #15 generation on MioCOS cards
- Some other small fixes to the pkcs15init code


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@450 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:42:29 +00:00
okir 059813818b - the previous fix broke do_verify_pin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@446 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 19:58:23 +00:00
aet 984b5b2a2b Minor warning fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@445 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 15:06:13 +00:00
okir 5cba842fde - shouldn't set key_reference
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@434 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 14:15:03 +00:00
okir 3b16e35af1 - rewrote parser to use Antti's scconf
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@427 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 11:52:30 +00:00
okir f4ff4f4617 pkcs15-gpk.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@422 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 14:45:55 +00:00
okir efa136e3cd - added sc_pkcs15init_present_pin for juha
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@421 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 14:27:00 +00:00
okir b6bf368fd2 - rewrite of the pkcs15-init stuff
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@415 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 13:26:42 +00:00