Commit Graph

23 Commits

Author SHA1 Message Date
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 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 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
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
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
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 5847b646f9 cleanup: -index shadows a variable in /usr/include/string.h
-some signed vs. unsigned issues
         -and some const cleanup


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2039 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-22 09:48:27 +00:00
nils ba23f8246a support for dynamic pkcs15init drivers
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1953 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-25 10:43:50 +00:00
okir 30e04cef59 - Implemented keep-public-key and sc_pkcs15init_remove_object as
suggested by Victor Tarasov.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1710 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 14:30:24 +00:00
okir 961e116006 - Support direct encoding of certificates
- Allow more than one profile option (e.g. pkcs15+small+direct-cert)
- While creating the basic pcks15 structure, store profile options
  in a special file on the card (3F002F01). All susequent operations
  (adding PINs etc) will use this information instead of what's
  given on the command line.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1615 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:37:02 +00:00
okir ae2cfe8a46 - sc_pkcs15_find_pin_by_reference now searches by reference _and_path_
- profile->p15_card renamed to p15_spec, as it reflects what _should_
  be on the card
- added profile->p15_data, which is what _is_ on the card
- make do_get_pin_and_verify use the sc_pkcs15_find_pin_by_reference
  properly.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1549 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:05:35 +00:00
okir f552395705 - Error logging changes: replace ctx->log_errors with ctx->suppress_errors
- remove error/debug callbacks; always use sc_error/sc_debug


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1519 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:57:29 +00:00
okir 23c1e81512 - pkcs15 rewrite
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1508 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 16:13:12 +00:00
okir 8c7e571c89 - erase card fixes: forget cached secrets, and use sc_free_apps
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1123 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:33:04 +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 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 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 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
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
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 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