Commit Graph

78 Commits

Author SHA1 Message Date
nils 01f72933af add support to parse the seInfo TokenInfo entry, improve aid support in opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3045 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-30 18:51:48 +00:00
nils b5dbdd9475 fix warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3004 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-02 19:43:13 +00:00
aj ab0066b0d7 fix printf size_t problem with "%lu" and (unsigned long) cast.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2923 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:02:50 +00:00
aj 41ff15ec1f fix signed and size_t warnings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2916 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 11:41:57 +00:00
aj 96cb7fa722 fix off by one bug.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2893 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 09:58:47 +00:00
nils 40e6c491ed fix ACs; patch supplied by njustin@idealx.com
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2876 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-22 17:12:00 +00:00
nils 25e5c95dde use sc_context_create instead of sc_establish_context
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2833 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-07 20:14:43 +00:00
aj 1a5a5c9b76 "cat xxxx" is not supposed to create errors (on record structured files).
so silence it.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2798 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 20:20:18 +00:00
aj cdc3044082 proper cleanup: close files if something goes wrong.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2704 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:27:44 +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
aj bf6808e3d8 "smart card" not "smartcard" or "SmartCard".
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2354 c6295689-39f2-0310-b995-f0e70906c6a9
2005-06-16 19:35:31 +00:00
bert eb4717ea17 API fixup: use defined type instead of struct for exposed structs (part 2)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2233 c6295689-39f2-0310-b995-f0e70906c6a9
2005-03-09 00:04:44 +00:00
aet df5e357694 - Whitespace cleanup from me and Martin Paljak
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2181 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-11 20:09:34 +00:00
nils 0b43659efa fix some compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2133 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-04 18:10:23 +00:00
sth 8857ff5b1c Work-around for cards that don't return FCI info
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2118 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-01 07:52:40 +00:00
nils 56487f86a1 more indent fixes from Martin Paljak
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2092 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-21 18:47:41 +00:00
nils 65986182e4 fix indent, patch supplied by Martin Paljak
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2080 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 08:00:41 +00:00
aet 55e170e0ac - Build / warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2014 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 13:53:36 +00:00
nils a7e042fdb3 Add two new commands: update_binary and update_record.
update_binary can be used to write arbitrary data data (entered as
hex values) to transparent files and update_record can be used to
do the same to record files.
Patch supplied by Victor Tarasov <vtarasov@idealx.com> and Nils Larsch


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1803 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-24 17:25:23 +00:00
aj 856cbdebfa fix short options as well.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1794 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 09:12:50 +00:00
aj 9b7cdbffad cleanup debug/quiet/verbose handling.
now all tools accept "-v" for verbose
operation, and you can specify -v several
times to get more verbose i.e. debugging
output.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1792 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 20:13:12 +00:00
aj 6460502b98 add "rm" alias for "delete" and "exit" alias for "quit".
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1756 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-14 19:53:23 +00:00
okir beb86f351b - util.c:connect_card() now locks the card; removed sc_lock calls from
calling applications (based on a bug report by Chaskiel)


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1699 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:06:28 +00:00
aet 7d3fc55736 - Minor build and C++ warning fixes
- pkcs15init: Use u8 for pin variable
  declarations like libopensc does


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1686 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:37:34 +00:00
okir 8ff09b7f77 - another fix to verify pin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1644 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:49:09 +00:00
okir cf733acdad - opensc-explorer.c ceased to accept verify data in hex notation, fix by
Martin Buechler


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1627 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 16:01:56 +00:00
okir 3d0e266886 - prevent problem with get/get_do ambiguity
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1596 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 06:54:30 +00:00
okir 64aaf18478 - Undid some of the previous changes. We now have a pseudo file system on the openpgp card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1594 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 17:18:34 +00:00
okir ee68df94f0 - added some support for OpenPGP cards
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1581 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:50 +00:00
okir 70597d4b14 - fixed change/unblock pin with implicit test
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1547 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:59:11 +00:00
okir 1eacefc83c - previous patch was bogus/incomplete
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1539 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:41:32 +00:00
okir af0bd61682 pkcs11/framework-pkcs15.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1538 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:40:22 +00:00
aet 0077a0876d Fix various C compiler warnings and C++ errors / name conflicts
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1463 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-25 09:33:16 +00:00
sth 97f78bc65f Fix: handle the 3rd argument of the Change PIN and Unblock PIN commands correctly
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1420 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 05:57:33 +00:00
sth cb581484b8 Read/write the file's contents as binary
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1283 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-18 09:32:41 +00:00
okir 54f12273ed - display LIST_FILES and CRYPTO ACs as well
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1139 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:25:13 +00:00
aj a58e5e5d19 improved "get" function:
- path is now by default like 3F00_5015_5031 instead of "3F00"
 - the final message shows not only number of bytes but also the filename.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1087 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 14:57:44 +00:00
okir d2b5c08857 - fixed unblock command when puk given in hex notation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1003 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 07:44:27 +00:00
okir 98e9561b5c - added command "random"
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@865 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-15 13:20:22 +00:00
okir ad7fb4ee05 - fixed help messages broken by previous patch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@829 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 17:07:56 +00:00
okir d1064f4417 - instead of calling sc_connect_card, use new function connect_card from util.c
This function will take care of the fine print and optionally wait for
  card insertion too.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@827 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:58:32 +00:00
okir 882c5b9ed3 - implemented unblock command
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@800 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 19:42:51 +00:00
okir b00579d40d - Fix from Joe Phillips: fix help message
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@726 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 15:44:32 +00:00
okir 34ba5b223c - --card-driver was mapped to -D, but should have been -c.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@722 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-25 09:03:48 +00:00
okir 7d3c61349e - fixed segfault in mkdir/create
- minor cosmetic change in do_verify


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@700 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-07 14:48:03 +00:00
fabled 7635468ed9 - Initial support for win32
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@654 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:52:56 +00:00
okir 041b46f52c - corrected info output for Linear variable TLV EFs
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@646 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:17:16 +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 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
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