aj
cea32a8016
make app_name, options and option_help static.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3192 c6295689-39f2-0310-b995-f0e70906c6a9
2007-06-29 13:19:19 +00:00
ludovic.rousseau
be309330e5
do not use global variables app_name, options and option_help so they
...
can be static
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3188 c6295689-39f2-0310-b995-f0e70906c6a9
2007-06-21 13:46:08 +00:00
aj
4f0329cd18
silence more gcc/sparse warnings.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3180 c6295689-39f2-0310-b995-f0e70906c6a9
2007-06-21 12:01:39 +00:00
nils
4c72646a35
increase pointer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3111 c6295689-39f2-0310-b995-f0e70906c6a9
2007-01-15 20:32:58 +00:00
aj
db0a552d7b
convert to utf-8.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3090 c6295689-39f2-0310-b995-f0e70906c6a9
2006-12-19 21:35:42 +00:00
nils
636f694291
check if the ef type is in range; thanks to Thomas Irlet
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3029 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 18:01:03 +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
nils
9c42d1dc8c
use sc_ctx_get_reader() etc. instead of of accessing the structure members directly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2848 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-15 17:29:40 +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
nils
9b717662d9
use sc_print_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2692 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-29 20:56:11 +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
nils
026f7ae89b
even more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2139 c6295689-39f2-0310-b995-f0e70906c6a9
2005-02-05 10:02:56 +00:00
nils
d644979168
print the atr in standard opensc hex format, patch supplied by Martin Paljak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2087 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-19 20:39:25 +00:00
nils
efe5366af6
dump serial number only if we have one
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2025 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 08:03:40 +00:00
nils
e3dc91d562
serial number support for opensc-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2023 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-16 08:50:51 +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
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
sth
cfcc191aa5
Change setlinebuf() to setbuf(), which is also availabel for MSVS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1524 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 11:23:18 +00:00
okir
e968abd1a1
- dont barf on empty directories
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1522 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 10:10:24 +00:00
okir
5da3b6f168
- removed unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1517 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:14:13 +00:00
okir
9f52b9e035
- Don't limit the number of times the --send-apdu option may be given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1513 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 08:10:39 +00:00
aet
c69ef430ee
C++ warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1438 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 22:20:26 +00:00
aet
8b091d6694
Add missing 'n' for getopt_long
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1298 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 09:09:35 +00:00
okir
81f2b7fe7d
- added --name option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1175 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 08:33:19 +00:00
okir
1e1eec0d8a
- getopt cleanup from aj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@988 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:28:09 +00:00
okir
0ea0ce2ac9
- opensc-tool -f: don't crash on large or record structured files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@972 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:52:41 +00:00
okir
909b917694
- opensc-tool -f should handle files > 2K gracefully
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@967 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:28:44 +00:00
okir
556c216c4b
- make sure all APDU fields are zero when processing -s option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@954 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-25 11:19:49 +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
09faf83bd0
- Fix from Joe Phillips: option mismatch in --help message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@725 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 15:43:54 +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
fa04f5e4ad
- Accessed file->type after freeing file (S. Henson)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@677 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:39:11 +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
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
ec6f8961b0
Don't hardcode initial debugging level and error/debug_file
...
pointers to the code, get the values from opensc.conf instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@386 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 21:56:13 +00:00
jey
f21926af00
- Started to add configuration file support to
...
libopensc
- Added typedefs for some basic structs (e.g.
struct sc_card --> sc_card_t)
- Added a second argument to sc_establish_context()
to identify the calling application
- Renamed sc_destroy_context() to sc_release_context()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@378 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:12:38 +00:00
jey
4ac49d6e88
- intermediary checkin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@249 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-01 11:52:55 +00:00
aet
4aa18a9ff9
Added support for checking libreadline and use it
...
for opensc-explorer if one is found.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@235 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 16:30:38 +00:00
jey
3fa1b27736
- implemented reader abstraction layer; now it's easier to
...
add support for e.g. CT-API
- renamed ops_data field to drv_data in struct sc_card
- copied coding style document from Linux kernel
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@221 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 19:32:14 +00:00
jey
61fc1f9327
- all instances struct sc_file should now be
...
dynamically allocated with sc_file_new() and released
with sc_file_free()
- improved ACL's
- moved struct sc_card_error to opensc.h
- moved EF(DIR) parsing and encoding to dir.c
(encoding is not working yet)
- removed hst-test.c and filetest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@213 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-20 09:56:47 +00:00
jey
709727d469
- added partial support for TCOS 2.0 cards
...
- default card driver now tries to do a GET RESPONSE
instead of SELECT FILE to detect the correct
CLA byte
- moved security attribute parsing from iso7816.c to card-setec.c
- added some more sanity checking to sc_check_apdu
- added 'debug' command line option to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@210 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-11 15:55:34 +00:00
jey
c1cac5f311
- bumped up version number in preparation of the new release
...
- unified PKCS #15 DF decoding
- added PKCS #15 file caching
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@191 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 16:02:54 +00:00
jey
d9792242cc
- fixed a bug with file permissions in flex_create_file()
...
- added RSA signature generation with Cryptoflex cards
- improved security environment handling
- implemented cryptoflex-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@177 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-20 21:20:09 +00:00
jey
9dc7054919
- added preliminary ASN.1 encoding support
...
- modified ASN.1 decoding to make it easier to
port decoder structures to the encoder
- fixed a recently introduced bug in card driver handling
- opensc-explorer will now allow only DF's to be cd'd into
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@156 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 12:33:56 +00:00
jey
269df3a6da
- created opensc-explorer tool
...
- increased support for CryptoFlex cards
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@152 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-09 01:03:10 +00:00
jey
7ff4c4544c
- added preliminary CryptoFlex 16k support
...
- added short names to card drivers
- moved various ISO 7816-9 functions to their correct places
- added write binary support
- renamed opensc-crypt to pkcs15-crypt
- split a part opensc-tool to pkcs15-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@150 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-08 13:56:50 +00:00
jey
9197babe53
- renamed sc_asn1_parse to sc_asn1_decode
...
- added capabilities and flags fields to struct sc_card
- added a mutex to sc_context for future use
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@148 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-07 18:23:34 +00:00
aet
891c3dbf88
AIX cc fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@131 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-03 07:33:28 +00:00
aet
8368c13f52
sc- -> opensc-
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@121 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-30 21:30:39 +00:00
aet
607271df53
Merges with SCIDI to help integrating build process with it
...
Remove some gcc specific flags from Makefile.am
Rename some header defines
size_t vs. int fixups
opensc.h: Define inline as null for other compilers than gcc, for now
Port pam_pkcs15 to compile for Solaris and HP-UX, untested
Fix compiler warnings
OpenSC now compiles cleanly for Tru64, AIX and HP-UX.
The only problem is the tools using getopt_long() (GNU extension),
to be fixed later..
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@120 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-30 21:17:34 +00:00
jey
ad2e34cb6c
- added preliminary support for EMV cards
...
- changed a few function prototypes
- implemented access control lists to files
- added sc_read_record() function
- updated the NEWS file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@111 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 02:07:32 +00:00
jey
db0740d1ca
- fixed some compile warnings
...
- updated TODO
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@108 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-28 14:19:41 +00:00
jey
695ad01b28
- added preliminary EMV support
...
- made a few bug fixes relating to select_file operation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@107 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-27 17:25:10 +00:00
jey
2b99f2df14
- added default driver for unidentified cards
...
- added select_file operation in Multiflex driver
- added 'list-drivers' command to opensc-tool
- moved stuff from opensc.h to sc-internal.h
- improved locking behaviour
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@106 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-25 20:45:48 +00:00
jey
36965ca6eb
- updated to work with latest library version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@90 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 20:52:57 +00:00
jey
503cbd4782
- added base64 conversion tool
...
- updated to work with latest version of OpenSC library
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@84 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-20 12:16:05 +00:00
jey
bd9396d87f
- updated tools to support latest version of the library
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@70 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-14 16:37:45 +00:00
jey
9fccf2c646
- added "learn-card" command to opensc-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@68 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-11 14:53:22 +00:00
jey
61ca346203
- added PIN changing support
...
- started to work on nsplugin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@60 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-30 11:57:21 +00:00
jey
939146ffed
- changed project name to OpenSC
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@52 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-24 13:32:52 +00:00
jey
674cbb1979
- added sc-crypt program
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@51 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-22 15:40:51 +00:00
jey
e0d6e06115
- small fix in sc-tool.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@49 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-21 22:40:27 +00:00
jey
ea594e3e50
- added very partial SSH support
...
- rearranged some functions
- added several new functions
- fixed handling of SW's
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@47 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-20 22:21:58 +00:00
jey
e5cf39b2eb
- small bug fixed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@46 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-18 20:36:15 +00:00
jey
f2f3a30792
- added sc-tool
...
- removed certtest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@45 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-18 01:52:32 +00:00