Commit Graph

5951 Commits

Author SHA1 Message Date
okir 34a3912fdf - in set_security_env, select the PK file prior to read_record
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@514 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:12:41 +00:00
aet cfe585e479 Remove openssh-3.0.2p1-patch.diff
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@513 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 14:31:32 +00:00
jey 3ec97d9815 - Added a missing file from a previous commit
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@512 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:10:47 +00:00
jey 87e27b00a4 - Changed an error code as per Andreas' suggestion
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@511 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:00:38 +00:00
jey 52c433a7ae - Added support for Aladdin eToken PRO; patch by
Andreas Jellinghaus <aj@dungeon.inka.de>


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@510 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 22:25:44 +00:00
aet 0ab6d49be9 Minor cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@509 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 13:26:51 +00:00
aet 321c81571a - Update ChangeLog
- Update src/openssh/README
- Removed obsolete patch for openssh-3.0.2p1


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@508 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 12:32:56 +00:00
aet e09a184f71 sc-ssh -> opensc-ssh
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@507 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 12:20:07 +00:00
aet 91609ed93c Free memory
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@506 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 11:34:00 +00:00
aet 644f4b0c7e - Revert previous patch since it leads to a sigsegv if we
parse file multiple times. Damn it, so lex allocates a 16kB
  buffer that it won't free any time. At least this could be
  solved some other time by rewriting a separate line parser
  without lex.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@505 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 11:24:33 +00:00
aet 9b2a5fe727 Free yy_current_buffer since lex doesn't do it
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@504 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 11:01:04 +00:00
jey 45e882f11f - Added a missing include file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@503 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-09 10:59:40 +00:00
okir 53a112eda2 - implemented C_InitPIN (based on pkcs15init)
- C_Login now understands the SO PIN.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@502 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:51:19 +00:00
okir 72856a7c04 - cleanup
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@501 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:50:11 +00:00
okir ec35a9215a - free some more memory in sc_profile_free
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@500 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:50:02 +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 3e11f90b22 - added sc_pkcs15init_unbind
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@498 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:46:44 +00:00
okir 59cd95af2c - SO PIN path was not propagated to the caller
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@497 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:46:27 +00:00
okir 2d47103692 - implemented sc_pkcs15_find_so_pin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@496 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:28 +00:00
okir 01e506e5ed - When the application selected the EF, then the container DF, all
PIN info would be lost.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@495 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:13 +00:00
aet b504fa0720 Remove scam_framework_ops->atrs
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@494 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 14:57:20 +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
okir 1f8790e22e - textual pin flags; defer pin file lookup until sc_profile_finish
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@492 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:29:15 +00:00
okir 24a45e2aad - implemented SO PIN handling
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@491 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:28:26 +00:00
okir c57272353a - enable SO PIN
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@490 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:28:02 +00:00
okir 6e3a42fba0 - add pin descriptions
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@489 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:27:48 +00:00
okir 517395b2eb - pin flags were not encoded correctly
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@488 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:23:17 +00:00
aet be9518e8a6 - Upgrade all modules to store method specific internal
data to scam_context->method_data


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@487 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 08:27:34 +00:00
aet 23fa9aeed4 Started to rewrite parts of scam:
- Combine lib{pam,sia}scam into libscam
- Get rid of the need for handles, printmsg
  and logmsg in the scam_framework_ops
  structure.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@486 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 19:36:59 +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
aet 2936e46e12 Warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@484 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 10:21:00 +00:00
jey 5259182d3e - Changed CLA byte to 0xA0 in miocos_delete_file()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@483 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 15:04:14 +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
jey 1b344d3ee4 - Added certificate templates
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@481 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 14:21:40 +00:00
jey 3e9d1470ae - Added PCKS #15 ASN.1 module
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@480 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 12:14:11 +00:00
jey 6e0b7dea2c - Divided errors into different groups, added new ones
and renamed some
- Moved sc_strerror() to errors.c
- Added a 'sensitive' flag to struct sc_apdu


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@479 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 12:02:28 +00:00
aet f781a14ae4 Fix some typos
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@478 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:21:40 +00:00
aet 6efa88796f Add errors.h and types.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@477 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:02:58 +00:00
okir 26d2f25b76 - include/opensc fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@476 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:49:03 +00:00
okir 7e5af94455 - C_InitToken: after creating the application DF, switch to the
normal pkcs15 framework on the fly and mark all tokens as initialized.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@475 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:19:53 +00:00
aet 11c937991b Change calling convention for sc_module_close()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@474 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:10:17 +00:00
aet ddb49064d6 Minor warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@473 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:51:34 +00:00
jey 0875849c61 - Started to split opensc.h into smaller parts
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@472 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:06:33 +00:00
okir 23ff14fb06 - added erase command
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@471 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:04:35 +00:00
okir d4ee9df5ce - added new pkcs15init framework that implements C_InitToken
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@470 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:03:03 +00:00
okir 829e7f6712 - added initialize() function to card ops vector
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@469 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:02:41 +00:00
okir d28bb6082a - Added C_Initialize
- Minor bugfix in C_Finalize


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@468 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:02:18 +00:00
okir 84943898b9 - add CKF_TOKEN_INITIALIZED flag
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@467 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:01:43 +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
okir 65d82412cb - try to free all memory we allocated
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@465 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:55:37 +00:00