nils
9be468b3a8
try to read at most max_recv_size bytes in GET RESPONSE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3060 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-21 22:10:11 +00:00
pk
4744121915
Support for DATEV smartcard classic
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3059 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-18 00:05:48 +00:00
aj
9abf0cc841
size_t is 64bit on 64bit plattforms, thus use %ld and convert to unsigned long.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3058 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-17 11:50:41 +00:00
nils
28c6c1ebc1
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3057 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-12 21:01:01 +00:00
nils
4f1bdbe99d
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3056 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-11 11:47:48 +00:00
nils
651d2c554d
remove useless code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3055 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-11 11:46:36 +00:00
nils
c208794ca8
check types before concatenating paths
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3054 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-11 11:09:57 +00:00
nils
ed2c784d44
update; patch supploed by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3053 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-10 23:07:45 +00:00
nils
4e401b6c06
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3052 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-09 21:26:19 +00:00
vtarasov
2d4bd463b0
Use do {...} while(0) construction for SC_TEST_RET, SC_FUNC_RETURN and SC_FUNC_CALLED defines
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3050 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-06 11:15:09 +00:00
nils
7da8984462
set path type; patch supplied by Thomas Irlet <iksiloev@gmail.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3049 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-02 13:58:58 +00:00
vtarasov
71aab076aa
When forgetting PIN set to 'null' the corresponding named_pin's entry
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3048 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-02 09:19:17 +00:00
aj
ef012c94f5
Thomas Harning: sc_list_files doesn't return the length of the
...
applicable buffer, but instead the # of files. Fixed.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3047 c6295689-39f2-0310-b995-f0e70906c6a9
2006-11-02 06:55:29 +00:00
pk
1c78d9e688
Netkey E4 emulation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3046 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-31 17:29:19 +00:00
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
ludovic.rousseau
bd753c4967
use the OPENSC_DEBUG environment variable to overwite the configuration
...
variable debug in opensc.conf
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3043 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-30 07:37:44 +00:00
martin
821a009609
New EstEID v1.5 card ATR
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3042 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-09 15:09:44 +00:00
ludovic.rousseau
07b7abdccd
c_asn1_toki[]: the serialNumber field is not mandatory in ISO 7816-15
...
see
http://www.opensc-project.org/pipermail/opensc-devel/2006-October/009025.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3041 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-04 07:00:15 +00:00
nils
65658db6e4
make the decision which locking functions to use more explicit; patch supplied by Martin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3040 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-02 17:26:48 +00:00
nils
e2dea71ad4
restore backward compatibility: try READ BINARY in case of a unknown file type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3039 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-02 16:49:26 +00:00
ludovic.rousseau
4a296307ac
c_asn1_ddo[]: the oid field of the DDO is not mandatory in ISO 7816-15
...
See
http://www.opensc-project.org/pipermail/opensc-devel/2006-October/009022.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3038 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-02 13:46:00 +00:00
nils
45e22aa7be
add the possibility to read the pin from stdin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3036 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-02 10:34:57 +00:00
nils
aeae39f47d
fix warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3035 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-01 20:52:37 +00:00
nils
7c823d89ca
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3034 c6295689-39f2-0310-b995-f0e70906c6a9
2006-10-01 20:39:53 +00:00
nils
a946dc98bf
set CKF_USER_PIN_INITIALIZED only if we really have a pin object
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3033 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-27 22:10:12 +00:00
ludovic.rousseau
1ac9b2aba1
sc_pkcs15_make_absolute_path(): a 0 length path stays a 0 length pat
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3032 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-27 12:02:02 +00:00
ludovic.rousseau
45fc350513
iso7816_process_fci(): dump the filename in Hex + ASCII instead of just
...
ASCII in the debug log
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3031 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-27 12:01:31 +00:00
nils
11779dce60
fix apdu
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3030 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 18:17:14 +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
henryk
b45617c451
Make absolute paths from all paths read from the PKCS#15 directories by prepending the DF(PKCS#15) path if necessary.
...
Fixes compatibility with Siemens HiPath SIcurity formatted cards which use relative paths.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3028 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 10:55:02 +00:00
henryk
12c6b11bdd
Fix handling for SIMPLE-TLV records with a three-byte length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3027 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 10:43:28 +00:00
henryk
325b9480ea
opensc-siemens.diff
...
Adds support for record-oriented files in linear variable, simple-tlv format.
TODO: Add support for all the other file formats, too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3026 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 10:36:35 +00:00
henryk
5a0e1849d5
Make do { ... } while (...); into while (...) { ... };.
...
Fixes behaviour with empty files.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3025 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-26 10:31:03 +00:00
nils
f087a937ff
implement workaround for the Taiwanese id card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3024 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-24 14:05:06 +00:00
nils
8d38746c28
keep index and count parameters
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3023 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-24 12:50:41 +00:00
nils
bf389495a8
add starcos spk 2.4 ATR
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3022 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-22 14:34:51 +00:00
nils
eb3b27709c
bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3021 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-22 14:18:22 +00:00
aj
91912bab20
scconf needs strlcpy too.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3020 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-20 13:33:50 +00:00
aj
d2e004d09b
ntohl is in ws2_32.lib / dll.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3019 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-20 12:32:59 +00:00
aj
a39e3824e4
don't forget part10.h (only used on windows I think).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3018 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-20 12:10:05 +00:00
nils
a127dd93ef
add option to write data objects; patch supplied by Cornelius Kölbel <cornelius.koelbel@lsexperts.de> et. al.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3017 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-18 05:30:41 +00:00
nils
1104e92bde
remove check for T0 as it seems to work for T1 as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3016 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-17 18:34:52 +00:00
ludovic.rousseau
3e2e82dde9
C_GetInfo(): use "OpenSC (www.opensc-project.org)" instead of
...
"OpenSC Project (www.opensc-project.org)" for the manufacturerID to
avoid a truncation at 32 characters
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3012 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-14 08:55:06 +00:00
martin
b1a87b6fa5
Make sure every new opensc instance sees the card from the sight starting point.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3011 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-04 20:01:20 +00:00
martin
3fab062b09
Update for [2836] chganges.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3010 c6295689-39f2-0310-b995-f0e70906c6a9
2006-09-03 15:58:36 +00:00
aj
198b68a6d3
shorten string, fixing #98 .
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3009 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-27 18:25:43 +00:00
martin
adc082b957
* Fix endianness for PCSCv2 part 10 IOCTLs
...
* Add support for start/finish style IOCTLs
* Add support for the same pinpad functionality on windows
Some code from Robert Konklewski and Ludovic Rousseau
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3007 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-16 16:36:00 +00:00
aj
4608716c53
Douglas E. Engert:
...
Change PKCS11-Spy so it looks in HKEY_LOCAL_MACHINE, before
HKEY_LOCAL_USER.
This should not cause any problems, as the HKEY_LOCAL_MACHINE,
"Software\PKCS11-Spy" would not normally be set, accept while
the sysadmin of the machine as trying to debug a login type problem.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3006 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-13 21:20:05 +00:00
nils
aec987df38
build fixes for win; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3005 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-03 21:05:59 +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
nils
42ad6be451
win build fixes; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3003 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-02 19:31:34 +00:00
nils
81fd37e617
fix sc_compare_path_prefix(); patch supplied by Henryk Plötz <henryk@ploetzli.ch>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3002 c6295689-39f2-0310-b995-f0e70906c6a9
2006-08-01 18:49:08 +00:00
nils
0037ceb09c
check the value of the pin type before accessing the array; patch supplied by Henryk Plötz <henryk@ploetzli.ch>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3001 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-23 08:02:37 +00:00
nils
5efe5b3603
bugfix: copy the first n characters (if possible)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2999 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-14 08:18:57 +00:00
nils
886e63c60e
cardos v4.3b support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2998 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-13 21:01:46 +00:00
nils
ae5866b244
don't accept invalid OIDs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2997 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-13 20:40:50 +00:00
nils
940c67b78a
cardos v4.3
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2996 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-13 20:37:05 +00:00
nils
d502887f55
bugfixes ...
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2995 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-13 20:35:17 +00:00
nils
9a5bf3602d
initialize pointer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2994 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-13 19:59:23 +00:00
ludovic.rousseau
126593aa01
- use strlcpy() instead of strncpy() to always have a terminating
...
NUL-byte
- use sizeof(field) instead of SC_PKCS15_MAX_LABEL_SIZE-1 or equivalent as
the 3rd argument of strlcpy()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2993 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 08:12:38 +00:00
ludovic.rousseau
382a7d6301
add $(top_srcdir)/src/common/strlcpy.c to libscconf_la_SOURCES since
...
src/scconf/parse.c now uses strlcpy().
Note that, since libopensc uses libscconf, strlcpy() will be available
from any program linked with libopensc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2992 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 08:09:58 +00:00
ludovic.rousseau
5e922b5325
add -I$(top_srcdir)/src/common so that strlcpy.h is found
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2991 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 08:06:59 +00:00
ludovic.rousseau
9ce3d4c663
add strlcpy.{c,h} from
...
ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2990 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 08:05:54 +00:00
ludovic.rousseau
2495268d98
- remove src/common/getopt.h since it collide with /usr/include/getopt.h
...
- replace @GETOPTSRC@ by $(top_srcdir)/src/common/my_getopt.c in
Makefile.am files
- change the detection of getopt_long in configure.in since GETOPTSRC is
not used anymore. my_getopt.c is now always compiled and used but
provides getopt_long() only if HAVE_GETOPT_H is NOT defined (ie. if
getopt_long() is not provided by the system)
- src/common/my_getopt.c: the code is within #ifndef HAVE_GETOPT_H
- move the useful lines of src/common/getopt.h in src/common/my_getopt.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2989 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 07:43:38 +00:00
ludovic.rousseau
1eb33bc946
rename README in README.my_getopt
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2988 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 07:32:40 +00:00
ludovic.rousseau
39a4d12795
use LIBASSUAN_* instead of ASSUAN_* so the assuan library is correctly
...
found and we avoid "undefined symbol: assuan_strerror
(.libs/opensc-signer.so)", etc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2987 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-12 06:41:10 +00:00
nils
fdd0baa633
bugfix: return error if OID is invalid
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2986 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-11 22:25:45 +00:00
nils
c044be5c72
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2985 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-11 21:43:44 +00:00
nils
a29a92686e
changes for cardos 4.3b
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2984 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-08 12:31:33 +00:00
aj
6287cf4d9b
replace static buffer with dynamically allocated buffer.
...
patch by Tomasz Lemiech to fix a problem with setec cards.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2983 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-05 19:45:53 +00:00
aj
7dd7df4e7c
Tomasz Lemiech wrote: I found that struct c_asn1_odf[] in pkcs15.c does not
...
define secretKeys object (as specified in PKCS#15 v. 1.1 standard, par. 6.2).
I consider this to be an omission. My Setec card contains objects of this type
and all PKCS#15 operations fail with "Unable to parse ODF". Attached patch
fixes this issue.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2982 c6295689-39f2-0310-b995-f0e70906c6a9
2006-07-05 19:36:26 +00:00
aj
607e85ad9b
add new atr reported by Sven Loeschner as Cryptoflex 32k Card.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2981 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-27 21:54:24 +00:00
sth
ee37240479
Added doxygen comments
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2980 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-27 17:56:19 +00:00
sth
bf23c032ca
Endian-independent way to convert numbers to a byte array + vice versa
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2979 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-27 17:49:19 +00:00
aj
ec38927731
check for environment variable first on windows, too.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2978 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-26 21:03:11 +00:00
nils
fae6f3feae
fix apdu types and response buffer length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2977 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-23 16:09:18 +00:00
nils
6df2a05975
bring implementation in accordance with the docu in opensc.conf
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2976 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-21 20:05:17 +00:00
aj
f1d9cda57c
the cryptoflex manual states the last two bytes of the atr are some
...
software version so we can ignore them. use the atr mask to do that.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2975 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-19 23:04:13 +00:00
nils
5c9c6aaff0
fix docu
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2974 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-19 19:01:39 +00:00
sth
6d96437c4a
The applet returns unexpected values when entering a wrong PIN; this is a work-around by Thomas Harning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2973 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-18 20:52:10 +00:00
nils
409fe3a9a0
fix warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2972 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-17 15:07:49 +00:00
nils
88bae5c923
remove iso logout function, remove dummy logout functions and remove logout call from sc_unlock()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2971 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-17 12:24:04 +00:00
nils
5691420588
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2970 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-16 20:47:59 +00:00
aj
746dc392d8
Fix makefile: add muscle files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2969 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-08 08:12:50 +00:00
sth
50490acca0
Added support for MuscleCard applet. Thanks to Thomas Harning, David Corcoran of Identity Alliance
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2968 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-07 08:33:37 +00:00
aj
e225efc982
add new card reported to work by Christian Koegler. Thanks Christian!
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2967 c6295689-39f2-0310-b995-f0e70906c6a9
2006-06-06 06:00:51 +00:00
aj
f9dd89e53b
sprintf bad. maybe even potential exploitable?
...
bug found by ville skytta using pscan.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2964 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-23 20:53:15 +00:00
aj
5d1f80d9fa
fix compiling netkey-tool on win32.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2963 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-23 12:55:40 +00:00
aj
d42495b01d
try to fix windows compile (include netkey-tool and cryptoflex-tool).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2960 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-23 09:09:29 +00:00
aj
0f64e9d3f1
make objects on piv card public.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2957 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-20 16:06:42 +00:00
aj
c7a5ce3b50
revert prior change as it breaks the regression tests.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2956 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-20 16:05:14 +00:00
ludovic.rousseau
1c56f74b6c
pcsc_connect(): use an explicit debug message if the reader supports PIN
...
verification/modification but that feature is not enabled in opensc.conf
(enable_pinpad = true)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2954 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-17 09:07:17 +00:00
nils
bfe05f31dc
check for existing public key before creating one from the certificate; patch supplied by Albert Solana <asb@c3po.es>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2953 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-15 18:48:30 +00:00
aj
77ce30fe26
Douglas E. Engert:
...
removes the private bit on the pubkey. Without this change the openssl req with engine can not be used to generate a certificate request, as it will not be
able to find the public key that should have been saved by the piv-tool when
the private key was generated on the card.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2951 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-12 20:03:45 +00:00
aj
45007b3da7
compile fixes for win32.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2949 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-12 20:01:26 +00:00
nils
b28f8ed9c4
improve buffer length check
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2943 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-09 21:35:07 +00:00
aj
f7110c593b
oops, we forgot to update the version. fix that for opensc 0.11.1.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2942 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-09 19:39:33 +00:00
nils
0c39b21b99
set the default for lock_login to false (as documented in opensc.conf)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2941 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-05 10:35:02 +00:00
nils
dd44fd8234
if the card doesn't support a logout functionality it's not an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2940 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-05 10:10:00 +00:00
nils
9b52eebdda
bugfix: Le must be <= buffer size
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2939 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-05 10:06:38 +00:00
aj
d78f5ad5c2
piv fixes by Douglas E. Engert.
...
This patch will allow a flag in the opensc.conf file to be set to
only expose the PIV authentication certificate and matching keys.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2938 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-04 06:50:56 +00:00
nils
9e5ed96912
use correct ef attribute in switch statement; thanks to Chaskiel M Grundman <cg2v@andrew.cmu.edu>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2937 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-03 07:16:38 +00:00
aj
21c821194b
close memory leaks.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2935 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:27:06 +00:00
aj
a48fe86b66
close some memory leaks.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2934 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:26:17 +00:00
aj
65a2cabffc
make sure result is null-terminated.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2933 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:23:15 +00:00
aj
6cfbd9d4f9
at least partialy close memory leak.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2932 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:22:25 +00:00
aj
45742fc5d0
check df before dereferencing it.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2931 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:21:16 +00:00
aj
449a1841b1
free(data)
...
(allocated by sc_pkcs15_read_data_object, no reference kept anywhere).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2930 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:20:22 +00:00
aj
5cb1c13c45
if exec() fails, exit with return code 1.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2929 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:17:11 +00:00
aj
56082ee3a0
initialize with NULL, so the later check for NULL will work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2928 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:16:48 +00:00
aj
b507ee68e4
add support for d-trust cards.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2927 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:12:36 +00:00
aj
8fe04d5a86
revert bogus change.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2926 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:10:35 +00:00
aj
6258b954e3
bogus change, no segfault here.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2925 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:07:53 +00:00
aj
7c6baba8e7
revert bogus patch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2924 c6295689-39f2-0310-b995-f0e70906c6a9
2006-05-01 10:06:35 +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
pk_opensc
60d9e4bf0e
TCOS-Emulation, support for Uni-Giessen card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2920 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-29 22:10:32 +00:00
ludovic.rousseau
2b4e6a5e98
fix a memory leak that occurs when the APDU exchange fails
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2919 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-27 20:44:24 +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
03f5827c30
make sure buffer is 0 terminated.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2913 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:08:00 +00:00
aj
2327835416
fix a memory leak.
...
don't access buffer beyond length.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2912 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:07:20 +00:00
aj
878f9c3de2
maybe it would be good to check the return value?
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2909 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:05:55 +00:00
aj
156e3a574d
maybe it would be good to check he return value?
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2908 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:05:21 +00:00
aj
5dcaeccb1e
fix double free and segfault.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2905 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:04:33 +00:00
aj
8df47f6bb0
fix memory leak.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2904 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:02:31 +00:00
aj
7ffd0f1d79
remove dead code.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2902 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:01:52 +00:00
aj
3066830238
close memory leaks.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2899 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:01:06 +00:00
aj
beb55b8104
not sure it is a good idea to ignore the return value.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2898 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 10:00:23 +00:00
aj
8fa4891bde
no idea how to fix, at least document it.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2895 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-26 09:59:27 +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
aj
1810d4d3fb
tcos updates by Peter Koch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2891 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-24 18:41:57 +00:00
aj
347c5b0496
remove a function that is no longer used at all.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2888 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-18 15:15:45 +00:00
aj
807b4c7275
improve regression tests: cleanup failed/ and out/ folder.
...
specify path to opensc-pkcs11.so module.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2887 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-18 15:15:02 +00:00
aj
5adad6431a
Lindent so the result is easier to read / diff.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2886 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-18 08:16:21 +00:00
aj
0222683058
Douglas E. Engert wrote:
...
The attached change to card-piv.c is need to recognize a
valid PIV card applet. All of the previous test cards would
return in response to a SELECT the full AID where as they
should have returned the the PIX portion of the AID. The newest
test cards are now doing this correctly.
This change will recognize either as a PIV applet.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2885 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-11 20:50:13 +00:00
sth
435d8ac62b
There doesn't seem to be a need to leave the certs (and CDF) unprotected. In case there do are problems, please revert this change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2884 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-06 18:41:12 +00:00
sth
9409c278df
Set the user pin reference when writing a cert. If not, there's a problem with the onepin profile option: the CDF (and certs) will be created with NONE ACs instead of ACs that refer to the user PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2883 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-06 18:38:20 +00:00
sth
95163a2678
protect certs by default
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2882 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-06 18:35:01 +00:00
nils
83c7dc9045
return an error if offset is too large
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2881 c6295689-39f2-0310-b995-f0e70906c6a9
2006-04-03 10:42:00 +00:00
aj
41d35027cc
install signer in libdir like everything else.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2880 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-24 23:54:12 +00:00
nils
b791b1d6bc
check the private flag of public key objects; patch supplied by Albert Solana <asb@c3po.es>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2879 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-24 10:55:33 +00:00
martin
1180345d75
Threading: Reader locking can fail as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2878 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-24 08:06:19 +00:00
nils
8be396fee3
add function sc_reset() to reset a card; patch supplied by Josep Monés Teixidor <jmt@c3po.es>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2877 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-22 21:44:09 +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
8e170f689e
initial support for the Swedish NIDEL card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2873 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-09 20:35:19 +00:00
ludovic.rousseau
2b8a2f4d90
sc_pkcs15_parse_tokeninfo() and sc_pkcs15_encode_tokeninfo() now use a
...
(sc_pkcs15_tokeninfo_t *) instead of struct (sc_pkcs15_card *)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2872 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-07 07:22:58 +00:00
ludovic.rousseau
6737a4dc5c
__sc_ui_read_pin(): use "%lu" and (unsigned long) cast to print a (size_t)
...
value (size_t is 32 or 64 bits depending on the platform)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2871 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-06 09:21:22 +00:00
nils
383602b6fe
- move logging to the reader driver
...
- log APDUs only if DEBUG is defined (sensitive APDUs should
never be logged and we cannot know whether a APDU is sensitive
or not => enable APDU logging only in a non-production debug
build)
- remove OPENSC_DONT_LOG_SENSITIVE configure option as it's
needed anymore
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2868 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-03 22:56:41 +00:00
nils
beb9d34db0
add some doxygen comments
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2867 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-03 21:10:02 +00:00
nils
d893720f03
add note
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2866 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-02 18:24:45 +00:00
nils
3b25ca27e9
remove useless code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2865 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-02 16:17:05 +00:00
ludovic.rousseau
d1c9ee9087
sc_pkcs15emu_actalis_init(): define 3 variables only #ifdef HAVE_ZLIB_H
...
since they are used in this case only
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2864 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-02 14:16:52 +00:00
ludovic.rousseau
984d652072
__sc_ui_read_pin(): use %lu instead of %u to avoid a warning: format
...
'%u' expects type 'unsigned int', but argument 3 has t ype 'size_t'
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2863 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-02 14:12:39 +00:00
nils
0bc5cb45fe
mark second parameter of sc_disconnect_card() as unused
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2862 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-01 22:34:54 +00:00
martin
e1ef4ec241
Remove the disconnect action from internal reader api
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2861 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-01 09:45:09 +00:00
nils
b93d6b1562
use absolute paths when caching files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2860 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-27 20:11:33 +00:00
nils
5b0119ca6d
change name + fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2859 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 19:15:06 +00:00
nils
126595bb07
fix some warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2858 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 18:43:14 +00:00
martin
0a9912233d
Fix for a segfaul. Patch provided by Albert Solana Berengu
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2857 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 13:40:03 +00:00
martin
530dc0916d
Add an example config entry for PIV cards and remove a card matching black hole
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2856 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 11:49:22 +00:00
martin
9213a29a34
Small fixes for windows compilation (Visual Studio Express 2005)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2855 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 11:02:24 +00:00
nils
b2d4d6a9bc
NIST 800-73-1 certs aren't protected by a pin anymore; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2853 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-23 08:10:07 +00:00
nils
149b5cf187
use sc_format_oid()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2852 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-22 20:35:57 +00:00
nils
8410084f0e
fix warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2851 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-17 21:06:31 +00:00
martin
aa5d081c3a
* Also delete .pdb files on windows when doing a clean
...
* Call directly internal pcsc transmit method for pcsc pinpad calls.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2850 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-17 11:22:21 +00:00
nils
99a28c35ba
add support a TCOS card used at the uni Giessen; this is still experimental
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2849 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-16 21:45:53 +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
a092e863b8
fix some warnings + cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2847 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-15 17:05:05 +00:00
nils
5c6f8d0ea9
fix warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2846 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-15 08:10:45 +00:00
nils
7dbbade0f6
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2845 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-15 08:07:29 +00:00
nils
1f65fbe10e
a unblocking pin could be used for authentication as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2844 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-14 22:46:54 +00:00
nils
a00caa5cc7
undo commit in pkcs15-tcos.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2843 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-14 22:41:02 +00:00
nils
b051b08584
add initial PIV card support; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2842 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-14 22:09:10 +00:00
nils
d02aaf37de
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2841 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-14 22:04:47 +00:00
nils
8c926455d0
add support for two byte tags in sc_asn1_find_tag() + normalize return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2840 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-12 18:30:53 +00:00
nils
8494d9cfde
add support for two byte tags in sc_asn1_find_tag() + normalize return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2839 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-12 18:29:52 +00:00
nils
1c1a0a1548
don't bind the pkcs15 card twice
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2838 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-12 17:37:39 +00:00
nils
a2194b9803
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2837 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-12 17:07:31 +00:00
nils
55631edf3b
support private certificates; patch supplied by Douglas E. Engert <deengert@anl.gov>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2836 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-09 20:05:20 +00:00
nils
bce076d325
pkcs15 emulation changes for the TCOS cards, patch supplied by Peter Koch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2835 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-08 22:25:09 +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
8e77e87551
sc_mutex_destroy should have a return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2832 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-05 19:35:55 +00:00
nils
ca2a5e11fd
- move APDU encoding to the reader layer
...
- remove APDU masquerading code, it shouldn't be necessary
anymore
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2831 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-05 19:00:01 +00:00
nils
85aaa4466d
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2830 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-03 21:24:11 +00:00
nils
5c3aed1189
- remove dependence on a specific threading library
...
- add two new structures: sc_thread_context_t which let
the user specify the mutex functions to use and
sc_context_param_t to specify parameters for the sc_context_t
creation (including mutex functions) using sc_create_context()
- add new function sc_context_create()
- remove timestamp code from libopensc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2829 c6295689-39f2-0310-b995-f0e70906c6a9
2006-02-01 22:59:42 +00:00
martin
670c0ee063
Rename: _get_conf_block -> sc_get_conf_block and put it into opensc.h
...
This way it can be used by OpenSC tokend module.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2828 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-31 15:53:44 +00:00
aj
525613ad5a
add atr and os identification for cardos 4.3 (plain, not b, not likely
...
to be ever seen, but 100% compatible to 4.3b as far as I know - only slower).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2827 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-26 19:02:02 +00:00
aj
2cc82fe774
rename lower level function, fix typo.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2826 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 22:02:07 +00:00
aj
f0c9f049a7
big rename etoken -> cardos, part II.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2825 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 21:48:08 +00:00
aj
d501480a29
move renames.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2824 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 21:44:37 +00:00
aj
aa2d502ece
rename everything namend "etoken" to "cardos" :)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2823 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 21:43:01 +00:00
aj
823bbffbe6
rename card-etoken.c to card-cardos.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2822 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 21:39:20 +00:00
martin
0e9037d12f
If, for some reasons, card can not be initialized (broken) then
...
we must make sure that we release all resources (disconnect the card).
If not we can only have 16 tries with a longrunning application (number
of contexts inside pcsclite).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2821 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 18:09:37 +00:00
martin
9e410e5f6c
Some cleanup/fixes in micardo/esteid code related to new apdu.c
...
Now it works again ;)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2820 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 17:37:10 +00:00
martin
723888d623
Negative r has a meaning in the cached file logic, so be sure to reset it to -1
...
after sc_print_path has returned a value.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2819 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-23 17:29:59 +00:00
aj
b07df40932
change more opensc.org references to opensc-project.org till dns is back.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2818 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-22 21:15:07 +00:00
nils
41ee07a708
increase size for bigger keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2816 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-21 11:53:30 +00:00
nils
e8c05ca648
use more opensc specific names for ASN.1 tags to avoid name conflicts
...
with other ASN.1 libraries
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2815 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-20 20:52:36 +00:00
nils
de4b5c280f
- implement thread-safe path printing function sc_path_print() and use
...
it src/libopensc/ and src/pkcs15init/
- use size_t for the certlen parameter of sc_pkcs15init_update_certificate()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2811 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-11 23:41:17 +00:00
martin
363d9be861
Get rid of handwritten sc_read_record calls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2809 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-07 23:40:36 +00:00
nils
dc2410a534
the current code requires a pointer to a integer, note: it's actually not a bug when foo_item is NULL as the necessary scconf_item object is created by scconf_item_add_internal
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2808 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-05 22:21:41 +00:00
nils
9f943aa2b4
don't segfault if no config file could be found (win); thanks to Nicolas Justin <nicolas.justin@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2806 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-04 18:52:52 +00:00
nils
fcb7b65010
increase buffer size for the serial number to 9 as we need 8 bytes for serial number plus 1 byte for the terminating 0 character
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2804 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-03 22:46:49 +00:00
sth
f674204d63
Add possibility to change pkcs15 attributes (currently only the label)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2803 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-03 16:24:54 +00:00
sth
ddd696482b
Forgotten to add in r2773
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2802 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-03 14:42:30 +00:00
nils
f18b38fe7f
summary: -add more general path concatenation function
...
sc_concatenate_path() and let sc_append_path use it.
-add function sc_compare_path_prefix to check whether
a path starts with a certain sub-path (prefix).
-add some doxygen docu to some path handling functions
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2801 c6295689-39f2-0310-b995-f0e70906c6a9
2006-01-01 23:11:00 +00:00
sth
e5d0ec212e
Typo fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2800 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-30 10:34:29 +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
nils
6a5c6b2217
fix warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2797 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 20:15:32 +00:00
nils
35052fc28a
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2796 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 20:05:28 +00:00
nils
fe3e93b625
summary: -complete rewrite of the APDU/transmission handling
...
code (should now support extended APDUs and is
hopefully better documented. Note: support for
the T0 ENVELOPE command is still missing due to
a lack of test cards).
-add new APDU case constants SC_APDU_CASE_2 etc.
which let OpenSC decides, based on the card
capabilities, whether to use short or extended
APDUs.
-add new capability SC_CARD_CAP_RSA_2048 for
cards supporting 2048 bit RSA operations (note:
this is more a preliminary hack)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2795 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 20:01:43 +00:00
nils
5861f986e9
remove unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2794 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 19:41:11 +00:00
nils
f5902e4f0c
add support for cardos m4.2 (still experimental)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2793 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-28 19:38:55 +00:00
martin
e1d7384e8a
If there's less data ina file/record than requested do not fail but return as much data as was available. This behaviour is similar to read(2).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2792 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-27 14:11:35 +00:00
martin
0548ceb618
If SCardControl fails there's nothing bad going on - just there's no support for this feature.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2791 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-27 13:41:23 +00:00
aj
86c4e23ec5
tcos update by peter koch, adds interoperability with th darmstadt cards.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2784 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-26 18:50:21 +00:00
sth
551bcc89fa
Referted the 'Fireofox 1.5' fix in log.c and replaced it by letting a blocking C_WaitForSlotEvent() return CKR_FUNCTION_NOT_SUPPORTED. This isn't a solution for the multihread problems (things hang or try to log to a released context) but at least it solves the Ff 1.5 problems
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2777 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-23 10:15:17 +00:00
nils
e56c7a9110
use correct apdu case and set Le value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2775 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-22 15:54:44 +00:00
nils
573ce9c9e5
suppress errors when EF(unusedSpace) is missing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2774 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-21 21:19:37 +00:00
sth
df6657ea18
Belongs to the rev. 2769 patch for adding EF(UnusedSpace) support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2773 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-18 07:54:18 +00:00
nils
ced2df6b1a
remove unused variables
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2772 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-17 21:52:53 +00:00
nils
103979ec37
fix key usage flags and ensure that we are in the correct lifecycle
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2770 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-17 20:54:29 +00:00
sth
9df2cde416
Add support for reading and writing from/to an EF(UnusedSpace) file; this functionality can be used for deleting and creating pkcs15 objects (that reside in a file)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2769 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-17 19:53:12 +00:00
nils
9ce3f13bac
add cardos m4.2 and print the startkey version in hex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2767 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-16 20:52:01 +00:00
aj
b2400d0795
pkcs15-tool needs openssl_libs also, if it is available.
...
only older gcc versions found this problem, it seems.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2765 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-14 10:59:57 +00:00
nils
1376a07cfa
fix APDU case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2764 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-12 20:38:19 +00:00
sth
912946bf3f
Fix for ticket #45 : Firefox 1.5 and new Mozilla's crash when they are closed because there's a blocking C_WaitForSlotEvent() called from another thread then the 'main' thread that calls C_Finalize(); and this cause C_WaitForSlotEvent() to log to a NULL context -> assertion failure.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2762 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-08 20:25:54 +00:00
ludovic.rousseau
fc763ba5d5
etcos_create_file_44(): use sizeof(pins)/sizeof(pins[0]) instead of a
...
constant (7)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2761 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-08 09:05:56 +00:00
aj
dce7d0024c
oops, parm points to the first char, not to a pointer to the string.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2730 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 22:09:28 +00:00
aj
1475978af5
remove unused variable item in scconf_put_str.
...
remove unused variable ret in scconf_put_int.
from the readme: "if parm not NULL, then ... parm points to ..."
so we need to get the value of the location where it points to.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2729 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 22:07:54 +00:00
aj
a533dc1292
free pub_buff in error path.
...
removed unused pubfile variable and dead code.
check prvfile != NULL.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2728 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:59:04 +00:00
aj
71c91425c7
check prkf != NULL.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2727 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:58:04 +00:00
aj
e5ffc57e92
free profilke and pin_obj in the error path.
...
check res_obj and keybits/keyargs before dereferencing.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2726 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:57:07 +00:00
aj
dc790e985b
check p15card != NULL before accessing it.
...
in the error path free file if it was allocated.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2725 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:55:03 +00:00
aj
40c67035c5
no code change, only easier to parse :)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2724 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:53:13 +00:00
aj
ad844b0f74
also check that priv->p15card is not NULL.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2723 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:52:33 +00:00
aj
4bac6634a1
for example if the card was removed, select file on the main
...
folder will fail. so I think it is best to return the error.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2722 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:51:50 +00:00
aj
51b72267ed
even select_file can fail (if card was removed etc.)
...
so better check the error and return the problem, right?
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2721 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:50:47 +00:00
aj
e49f78a360
fix typo on *paramp test.
...
check alg_info always, not only in some case.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2720 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:49:59 +00:00
aj
252fa4b868
check scconf_find_blocks returning NULL
...
add a free(obj) to the error path.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2719 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:48:43 +00:00
aj
2f200901d6
check file parameter.
...
set file=NULL after freeing it to avoid potential double free.
check key_file parameter before dereferencing it.
check card first, then derefence it.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2718 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:43:04 +00:00
aj
2f8b813d51
sizeof(int[7]) is 28. I think bCommands_pin should have 7 elements, too.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2717 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:41:14 +00:00
aj
e0d645b95b
remove unneeded if(1) block.
...
free temp in error paths.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2716 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:39:58 +00:00
aj
5e03972e41
check if scconf_find_blocks returned NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2715 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:39:00 +00:00
aj
4801c7eadd
check if scconf_find_blocks returned NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2714 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:38:33 +00:00
aj
686297304a
check if scconf_find_blocks returned NULL.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2713 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:37:59 +00:00
aj
d7b6abaef5
add proper free to error path.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2712 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:37:34 +00:00
aj
138dfad842
simply code / remove dead code.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2711 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:36:55 +00:00
aj
2a1c6cb87e
check if scconf_find_blocks returns NULL;
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2710 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:36:26 +00:00
aj
7e15333537
add paranoia: what if scconf_find_bloicks returns NULL?
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2709 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:35:31 +00:00
aj
5ef6ed52a4
add paranoia: check all arguments before
...
dereferencing them to prevent segfaults.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2708 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:33:59 +00:00
aj
bc23ab4cd2
free allocated variable in error path.
...
set rec=NULL after freeing it to prevent
double free'ing.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2707 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:33:11 +00:00
aj
4863fb752d
free buf if pin was entered incorrectly.
...
check if file is not NULL (out of memory).
free file, if something goes wrong.
free pin/puk once no longer needed.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2706 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:31:20 +00:00
aj
131842c80b
make code easier by removing match variable.
...
check if cert was returned != NULL.
free cert if there is some error.
set variables to NULL after being freed,
to avoid potential double free bugs.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2705 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:29:54 +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
aj
365196594c
check publickey variable before de-referencing.
...
change newpin to NULL so it can't get free'd twice.
allocate buf from heap, not stack (quite large).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2703 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:27:05 +00:00
aj
93dae31ca7
#if out the dead code.
...
remove some dead code in the hexdump code.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2702 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:25:08 +00:00
aj
2357ff6c66
does not work, will segfault.
...
also no need to assign foo_item all the time,
scconf_item_add returns the item parameter,
so it does not change.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2701 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:22:42 +00:00
aj
05587ca087
add a few sanity checks.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2700 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-05 21:21:02 +00:00
nils
346486ee70
fix problem with uninitialized pointer; this patch resolves opensc ticket #61
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2698 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-04 23:23:25 +00:00
nils
bb63ca1829
fix pkcs15 initialization + fix DIRECTORY command; patch supplied by Giuseppe AMATO <giuseppe.amato@st.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2696 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-02 22:24:09 +00:00
aj
4de18a2552
fix for the combination of cryptoflex, 2048bit keys and
...
some smart card readers by Jean-Pierre Szikora
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2694 c6295689-39f2-0310-b995-f0e70906c6a9
2005-12-01 22:18:58 +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
nils
7247db8aee
use sc_print_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2690 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-28 23:07:33 +00:00
nils
0a23e307af
remove senseless and inconsistent checks + cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2688 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-26 10:03:38 +00:00
nils
3ac1f94d2b
use unsigned int instead of uint16_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2686 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-25 19:11:09 +00:00
nils
3a803dfe3b
remove disabled code, request FCI only if a file object has been specified
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2685 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-20 21:53:34 +00:00
nils
ca4eba5861
fix ac for file deletion
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2683 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-17 10:23:35 +00:00
aj
f91e2339ce
add more cardos versions.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2681 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-01 22:34:22 +00:00
nils
b6c44d826c
use 1024 bit keys for testing to avoid problems with starcos tokens
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2680 c6295689-39f2-0310-b995-f0e70906c6a9
2005-11-01 08:31:59 +00:00
sth
a3e1bc8f4f
Let --assert-pristine work for Setcos 4.4 cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2679 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-31 19:31:45 +00:00
nils
f74eaee690
fix GET RESPONSE handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2678 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-31 18:44:18 +00:00
nils
ad647c66fa
use sc_ctx_get_reader
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2676 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 21:44:05 +00:00
nils
b325af7fac
remove deprecated pkcs15 emulation api. Add temporary wrappers for
...
the new functions in some pkcs15 emulation drivers.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2675 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 21:42:35 +00:00
nils
54046c6c1c
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2674 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 21:17:07 +00:00
nils
43f0118740
summary: - improve support for extended APDUs
...
- add experimental support for command chaining
- simplify get_response prototype
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2673 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 20:37:03 +00:00
nils
95200e0f50
add pkcs15 emu function for data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2672 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 19:55:21 +00:00
nils
47ee84e72d
add functions
...
void sc_ctx_suppress_errors_on(sc_context_t *ctx);
void sc_ctx_suppress_errors_off(sc_context_t *ctx);
to turn on/off error suppression (to avoid accessing
sc_context_t directly) and use it.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2671 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 19:08:06 +00:00
nils
fa65fbf285
summary: - add new function sc_format_oid to libopensc
...
- cleanup libopensc api
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2670 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-30 18:05:30 +00:00
martin
89cfac8735
Update pcsc pinpad code to latest pcsc-lite code, limit to pcsc-lite only.
...
Verify works fine, modify needs some debugging-testing.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2668 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-29 21:17:15 +00:00
nils
1f58981bcb
update from Sirio Capizzi <graaf@virgilio.it>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2667 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-28 18:10:15 +00:00
martin
e8f1c45ad8
This works better.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2666 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-27 21:39:42 +00:00
nils
242edbea0c
add another cardos ATR, supplied by graaf@virgilio.it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2665 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-27 20:16:57 +00:00
nils
90d1b0cc9c
add support for the Italian Incrypto34 smartcard;
...
patch supplied by Giuseppe AMATO <giuseppe.amato@st.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2661 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-24 21:58:35 +00:00
nils
0ad2a0782d
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2655 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-21 19:40:37 +00:00
aj
8b65da70a1
prepare 0.10.0 release.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2652 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-21 17:34:09 +00:00
aj
e0465478e7
update by Peter Koch.
...
still one problem left in pkcs11-tool, but lots of improvements.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2650 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-17 08:00:44 +00:00
sth
58943d59b5
Compiler warning fix: use 'char * argv[]' in main() because getopt_long() does so too
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2648 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-13 11:19:25 +00:00
nils
ff795fb1e6
bugfix for a potential segfault in card-setcos.c when the
...
acl "pointer" is one of the special values 1,2,3
Patch supplied by Jakub Bogusz <qboosh@pld-linux.org>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2647 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-12 17:52:56 +00:00
aj
ba303233ff
fix compiling on solaris9. Thanks to Douglas E. Engert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2645 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-11 20:57:15 +00:00
nils
d858b4f84c
fix build with openssl 0.9.8:
...
move "#include <openssl/crypto.h> up and remove unnecessary
include for asn1.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2642 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-09 22:15:35 +00:00
nils
6eeedc7d5f
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2641 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-09 12:00:34 +00:00
nils
c7a8e84caf
suppress errors in pkcs15 card detection if we don't know whether we really have a pkcs15 card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2640 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-08 11:08:34 +00:00
nils
191f2af7ab
set the ca certificate only if it's really present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2639 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-07 20:04:33 +00:00
nils
cee5f2a147
print lastUpdate field as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2638 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-07 19:58:43 +00:00
aj
43d3408938
add a few details about the card, also by Antonio Iacono.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2636 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-07 07:06:16 +00:00
aj
d1cbf05abf
add --dump option, thanks to antonio
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2635 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-06 19:30:18 +00:00
aj
8fb4d9fc4c
Better name, as suggested by Ludovic.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2632 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-06 06:57:07 +00:00
aj
163176fd45
__APPLE__ does not need special handly. Only the broken pcsc-lite shipped
...
in mac os X does, so use define set by configure on mac os X, if the
default pcsc is used, but not if a self compiled is used.
teach configure new getopt source file names.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2631 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-05 15:25:27 +00:00
aj
40ad6b0037
replace GNU/glibc getopt (LGPL) with my_getopt (BSD).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2630 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-05 15:23:51 +00:00
sth
8f230f5c1d
Do an sc_lock() before an sc_pkcs15init_bind(). Reason: in sc_pkcs15init_bind() an sc_lock() and sc_unlock() is done; and when the lock_login config option is set to false, the sc_unlock() will call logout() which for some cards means a SELECT(3F00) -> unwanted change of the current EF/DF causing errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2629 c6295689-39f2-0310-b995-f0e70906c6a9
2005-10-01 18:51:34 +00:00
aj
9d4d8ec98a
reomve unneeded ifdefs.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2628 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 17:44:42 +00:00
sth
6effc69169
Removed the bundle on Mac
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2627 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 11:17:06 +00:00
aj
90d0046a24
"Unsupported" might be easier to understand.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2626 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-30 06:35:29 +00:00
sth
10fa4a6962
Fix: deleting a cert chain with 1 or more intermediate CA's crashed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2625 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-28 14:52:32 +00:00
nils
4be1f40fd3
add option to specify the key length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2624 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-27 17:22:48 +00:00
aj
06e1239a89
new tcos atr provided by Gerald Richter.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2623 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-24 17:45:54 +00:00
aj
7bf15d3d7d
replace gpl'ed and old version with new lgpl'ed version from glibc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2622 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-23 15:47:44 +00:00
aj
7d2ebb11c4
scdl is replaced by ltdl, libp11 and sslengines are not standalone.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2618 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 14:51:21 +00:00
aj
1d251cfa7a
Document cryptoki header files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2617 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 13:15:11 +00:00
sth
d9bd913306
No SC_AC_OP_DELETE for EFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2616 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-22 12:45:31 +00:00
aj
7d5d0ecfb2
scconf no longer needed for pkcs#11 spy.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2614 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 20:18:37 +00:00
aj
d05e28d1f5
do not install bundles on mac os X. no reason to.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2613 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 20:17:22 +00:00
martin
3c47bb093c
Fix makefiles
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2611 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-21 12:52:36 +00:00
nils
75d8f0492e
fix TPDU if T0 is used
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2608 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-20 22:22:31 +00:00
nils
052a4933ae
remove unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2606 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-19 16:37:19 +00:00
ludovic.rousseau
81b47ab8a4
use_color(): add "rxvt-unicode" to the list of terminals supporting
...
colors
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2605 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-19 08:09:44 +00:00
aj
92789b9837
undo change 2397 as it breaks openct and
...
you can use apd_masquerade = case4as3 instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2604 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 20:29:36 +00:00
aj
6c1d35e062
make openct readers configureable.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2603 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 12:33:31 +00:00
aj
881c80d839
pkcs11-spy no longer uses a config file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2602 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-18 11:00:00 +00:00
nils
6abeaf1f1c
add a new function
...
void sc_mem_clear(void *ptr, size_t len);
to clear a memory buffer. If OpenSSL is used this function
is a wrapper for OPENSSL_cleanse, otherwise memset is currenlty used.
Use this function to clear memory buffers with sensitive content.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2601 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 10:44:45 +00:00
nils
47d2baf5a3
use calloc instead of malloc + memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2600 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 09:40:12 +00:00
nils
f60996526a
remove useless memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2599 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:53:25 +00:00
nils
142d18378b
don't use static buffer in iso7816_build_pin_apdu
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2598 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:20:13 +00:00
nils
d00d795782
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2597 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-17 08:04:26 +00:00
nils
55418c5ac3
log dlerror message when dlopen failed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2596 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 20:31:06 +00:00
nils
5123be2b85
add two new functions
...
sc_reader_t *sc_ctx_get_reader(sc_context_t *ctx, unsigned int i);
unsigned int sc_ctx_get_reader_count(sc_context_t *ctx);
to access the reader_count and the sc_reader objects (to avoid accessing
the sc_context members directly).
Use these functions in src/pkcs11 + error checking to avoid accessing
invalid sc_reader objects.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2595 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 10:18:55 +00:00
nils
aec4a81304
add pkcs15 emulation support for a cardos based id card issued by tc trustcenter
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2594 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-16 08:55:09 +00:00
sth
00be34c4a2
Added certificate update functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2593 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 19:40:20 +00:00
sth
e15c54e1c5
Win32: we now need the external libtool package
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2592 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 05:55:53 +00:00
sth
ca3be84ffb
Fix warning on Windows compiler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2591 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-15 05:41:29 +00:00
sth
595e143045
Added setcos.profile (thx JP Szikora)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2587 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-13 08:13:13 +00:00
nils
59cae4140b
fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2585 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-12 21:09:12 +00:00
nils
ba179c1bb3
remove superfluous comma
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2573 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 21:06:49 +00:00
nils
511790880b
more pointer madness to make the compiler happy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2572 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 21:05:25 +00:00
nils
d0f1b085e9
fix function pointers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2571 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 20:40:58 +00:00
sth
fd86e44094
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2570 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-11 19:57:43 +00:00
nils
68a49360d2
pkcs15-netkey.c -> pkcs15-tcos.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2566 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 19:51:38 +00:00
nils
02cc450be0
update tcos pkcs15 emulation drivers; patch supplied by Peter Koch <pk_opensc@web.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2565 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 19:30:43 +00:00
aj
21e3b71029
use ltdl not scdl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2564 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 14:43:59 +00:00
nils
418e87f944
select file even if no acl for writting is set; patch supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2559 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-09 07:15:03 +00:00
aj
c9e80e95ea
we use libtool for linking, so it can calucalte the dependencies using
...
LTLIBLTDL better. Thanks to Ralf Wildenhues.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2558 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 17:21:58 +00:00
aj
ce14d27cb3
AC_SUBSTed variables are better used with $(..). Thanks to Ralf Wildenhues.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2557 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 17:15:07 +00:00
martin
8596348a75
* Get rid of reset card error that comes from pcsc only and deal with reset situations with SCardReconnect
...
* Add some options to control pcsc behavior.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2553 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-08 11:35:26 +00:00
nils
7a2fec9b86
remove dependence on libopensc, instead use scconf directly.
...
Note: this code is still experimental !
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2552 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 20:05:13 +00:00
nils
9f26a4ae35
fix warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2551 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:34:27 +00:00
nils
d37315ec35
cleanup key usage handling, cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2550 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:32:52 +00:00
nils
f9db170520
we need libltdl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2549 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 09:20:24 +00:00
nils
cfc64a494e
let src/libopensc/ compile with -Wall -W -Wno-unused-parameter -Werror
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2547 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 08:47:13 +00:00
nils
f6c95792fe
let src/libopensc/ compile with -Wall -W -Wno-unused-parameter -Werror
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2546 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-07 08:33:55 +00:00
nils
13a3e699e5
adjust key usage bits
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2545 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-06 21:18:26 +00:00
aj
08a640c94b
users of libpcs11.c also need @LIBLTDL@ libraries.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2544 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-06 20:22:15 +00:00
aj
a59faf395d
fix compiling with ltdl.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2542 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 20:44:51 +00:00
nils
ffb7928f6e
we need lt_dlinit()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2538 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 17:05:26 +00:00
martin
d744a6e5f5
Include reader.h if found.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2537 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-05 11:29:57 +00:00
nils
61f894a2c3
yet another atr + cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2535 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-04 09:23:28 +00:00
nils
9ca1bc2a09
remove unused internal function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2534 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-04 08:57:17 +00:00
aj
25cb1a3ca1
fix compiling with openssl installed in a non-standard location.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2530 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 20:51:54 +00:00
aj
ff62b88e1c
big configure update.
...
use pkg-config for openct, openssl, pcsc.
do not compilke libp11. do not compile sslengines.
remove scdl. use libltdl instead.
use libassuan.m4 macro for m4 detection.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2528 c6295689-39f2-0310-b995-f0e70906c6a9
2005-09-01 14:01:58 +00:00
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
891ed0f197
Added Netscape/Mozilla specific types etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2524 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-29 12:49:53 +00:00
aj
96519c6b72
stop building libp11 and the ssl engines.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2523 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-28 20:18:52 +00:00
sth
bae2b51e01
Fix in new_file(): if there's already a key with such ID, take next one
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2522 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:35:33 +00:00
sth
bb2506cff9
Return the real pinref
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2521 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-26 19:33:52 +00:00
nils
89dacc6c82
fix compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2520 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:18:24 +00:00
sth
ed9e925989
Improved ACs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2519 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 16:11:46 +00:00
nils
3b6a90000a
add missing include, removed unused variable and initialize variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2518 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:59:01 +00:00
nils
9cbac71de9
decode preferredLanguage field if present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2517 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 15:54:43 +00:00
ludovic.rousseau
850cea465b
move PKCS11_open_session() from libp11-int.h to libp11.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2516 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 14:25:23 +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
eec0e22b03
de-/encode printable strings as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2514 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-24 08:00:44 +00:00
nils
260723da53
cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2513 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 21:16:55 +00:00
sth
8e3dee0585
Added set_userpin_ref() to link a PIN value to a PIN ref for an existing user PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2512 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-23 09:01:57 +00:00
nils
1d05f32bc4
mark card/profile as dirty when an object has been deleted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2510 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:54 +00:00
nils
a28aa1f917
avoid warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2509 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:37:02 +00:00
sth
26108b0280
Added support for deleting pkcs15 objects (if the pkcs15init card driver for that card supports it)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2508 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:23:46 +00:00
nils
8ba443d1d9
fix parameter type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2507 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:22:25 +00:00
sth
b5e2a2afff
Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2506 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:20:13 +00:00
nils
b9efe849eb
add support for serial number in card-oberthur.c; supplied by Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2505 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:17:44 +00:00
nils
0d7b025a4b
add missing variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2504 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-22 09:15:57 +00:00
martin
7ffd68a9ee
Make the pcsc pinpad option work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2503 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:44:07 +00:00
martin
924a118501
Don't cache pins that protect a userconsent slot.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2502 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-21 18:39:43 +00:00
nils
2fb54dd374
use compile time initialization for the iso_ops structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2501 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 13:39:18 +00:00
nils
08b415a5a3
use non-repudiation flag only for the signature key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2500 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-20 11:06:18 +00:00
nils
f855074c27
check result of sc_file_dup + some cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2499 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 17:56:56 +00:00
nils
f317e2966a
sc_file_dup(): copy attributes as well, use explicit assignement and check return values
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2498 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-19 06:39:16 +00:00
nils
7ff54c7e2e
use calloc instead of malloc + memset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2497 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 22:43:01 +00:00
sth
edb11bd2ea
Fix: object type contains not only the class
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 21:14:19 +00:00
sth
6c20b6a6ad
Undo-ing accidential commit of card-belpic.c and pkcs15-sec.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2495 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 14:01:54 +00:00
sth
f43d52476e
The lengths of the ASN.1 entries are used outside the if blocks -> declare them outside the blocks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2494 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 13:55:36 +00:00
ludovic.rousseau
25d3148ef6
use _LIB11_H instead of _LIB11_INT_H
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2493 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 08:39:29 +00:00
ludovic.rousseau
df86e3f8ac
PKCS11_CTX_unload(): do not call ERR_free_strings() and
...
ERR_remove_state() since OpenSSL strings may be used by the application
and we can't know
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2492 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-18 07:06:13 +00:00
nils
b143ac5637
add support for signature generation with a decryption key; patch supplied by Peter Koch <pk_opensc@web.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2491 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 21:35:13 +00:00
nils
9a49854fdc
use ERR_LIB_USER instead of 42
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2490 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 12:10:24 +00:00
ludovic.rousseau
decb9297dd
add PKCS11_change_pin() function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2489 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 11:05:09 +00:00
nils
305b68f10b
summary:
...
- do not use key enumeration as a test of login status, as this will
not work for all PKCS#11 libraries
- replace magic number used for PIN length with a constant
- add documentation for set_pin, as well as testing for NULL input
and checking for strdup failure
- made the global variable 'pin' static (TODO check if other global
variables can be declared static)
- if a PIN is allocated, then check for NULL
- if a PIN is to be freed, then whiten the memory first
- if the token has a secure authentication path, then the PIN shoud be
NULL (as per PKCS#11 v2, p. 126)
- replaced some fprintf statements with 'fail' (TODO all
fprintf calls should be replaced with log functions)
Patch supplied by Geoff Elgey <Geoff.Elgey@quest.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2488 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-16 10:58:16 +00:00
nils
d6e5facb0d
make old compilers happy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2487 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:33:43 +00:00
nils
5adbeff6e0
fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2486 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-14 22:00:28 +00:00
martin
59e1f37bb2
* Clean up some whitespace
...
* class2->part10
* Make pinpad detection a configurable option
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2485 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:26:46 +00:00
martin
fc3048f55e
Remove the (stupid) use_pinpad option from pkcs15 structures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2482 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-13 13:04:02 +00:00
nils
a20f0d576e
two small fixes from Tarasov Viktor <vtarasov@idealx.com>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2481 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-11 19:14:23 +00:00