Peter Marschall
d824eb62bc
pkcs15-profile.xml: remove empty SYNOPSIS section
2011-07-15 18:27:39 +02:00
Martin Paljak
d505a55483
Release OpenSC 0.12.2
2011-07-15 13:40:07 +03:00
Martin Paljak
a8df0b37cd
PreReleases: publish 0.12.2 RC2, the final RC.
2011-07-13 17:27:13 +03:00
Martin Paljak
358c6828c2
NEWS: add note about 17bc2c8
2011-07-13 17:26:28 +03:00
Martin Paljak
17bc2c8809
FINeID: fix for broken organisation cards.
...
Certain FINeID cards for organisations return 6A88 instead of 6A82 for missing files.
This makes sc_enum_apps fail and will result in unknown card behavior from OpenSC.
See http://www.opensc-project.org/pipermail/opensc-devel/2011-June/016910.html
2011-07-13 17:25:09 +03:00
Martin Paljak
4294f3ca98
MacInstaller: Mac OS X 10.6.8 was released on 23.06.2011. Require it by default
2011-06-30 16:50:25 +03:00
Martin Paljak
11a7a9ebfb
Update NEWS about silent builds
2011-06-30 13:26:09 +03:00
Ludovic Rousseau
e8b22f63e7
Silent build rules by default
...
Use make V=1 for the verbose mode (as used before)
2011-06-30 13:24:56 +03:00
Ludovic Rousseau
0125444638
Silent build rules by default
...
Use make V=1 for the verbose mode (as used before)
2011-06-30 11:42:31 +02:00
Martin Paljak
2680a55abd
Amend previous commit, configure.ac was unpublished.
2011-06-28 13:10:43 +03:00
Martin Paljak
f717b678c0
Update NEWS and version information for the RC.
2011-06-28 12:33:54 +03:00
Martin Paljak
ea4eee5dc2
Merge remote-tracking branch 'ludovic/master' into proposed
2011-06-28 11:18:23 +03:00
Martin Paljak
78adc76da3
Merge remote-tracking branch 'viktor/master' into proposed
2011-06-28 11:17:36 +03:00
Ludovic Rousseau
a59ded782e
Fix compiler warnings
...
ctx.c:679:7: warning: "ENABLE_CTAPI" is not defined
ctx.c:681:7: warning: "ENABLE_OPENCT" is not defined
2011-06-23 17:07:26 +02:00
Ludovic Rousseau
b7c2836d94
C_Digest(): check context validity before logging
...
If the context is invalid (no C_Initialize) the we get a:
log.c:76: sc_do_log_va: Assertion `ctx != ((void *)0)' failed.
2011-06-23 16:10:46 +02:00
Ludovic Rousseau
1f6a85fea9
only C_GetFunctionList needs to be exported
...
Calling applicatinos must locate function pointers through
C_GetFunctionList() after dlopen().
2011-06-23 11:57:05 +02:00
Ludovic Rousseau
b9c43b9214
Remove a useless cast in sc_dlopen()
2011-06-21 13:56:40 +02:00
Ludovic Rousseau
d3c13fd471
Fix compiler warning
...
libscdl.c: In function 'sc_dlerror':
libscdl.c:86: warning: old-style function definition
2011-06-21 13:53:08 +02:00
Ludovic Rousseau
ce2d3c09be
Check the lib is initialized before logging
...
C_CloseSession() and C_CloseAllSessions() were calling sc_debug() before
any check on the validity of the context. So if C_Initialize() was not
previously called you get an assert:
log.c:76: sc_do_log_va: Assertion `ctx != ((void *)0)' failed.
2011-06-21 10:41:41 +02:00
Martin Paljak
dcf9a8e0b2
setcos: remove useless #if 1
2011-06-17 12:12:38 +03:00
Martin Paljak
17c295ab1e
Fix compiler warnings:
...
../../src/libopensc/cardctl.h:231:30: warning: comma at end of enumerator list
../../src/libopensc/cardctl.h:629:13: warning: comma at end of enumerator list
2011-06-16 15:58:55 +03:00
Martin Paljak
bc307ae975
compiler warning: muscle.c:588:12: warning: unused variable ‘buffer_size’
...
Also remove asserts, production code is compiled with asserts turned off, thus the unused variable warning.
2011-06-16 15:49:04 +03:00
Martin Paljak
46e0c49d7b
pcsc: correctly handle timeout situation when refreshing reader state.
...
The code that treated a timeout as success was never reached, because the
surrounding if eliminated the possibility of entering the block when the return code
from SCardGetStatusChange was SCARD_E_TIMEOUT.
Issue found by Coverity Scan.
2011-06-16 10:15:34 +03:00
Martin Paljak
1f870b0c07
pcsc: initialize variables
...
Patch by Frank Morgner
http://www.opensc-project.org/pipermail/opensc-devel/2011-May/016659.html
2011-06-16 10:08:04 +03:00
Martin Paljak
f4a45da617
Merge branch 'proposed' of github.com:martinpaljak/OpenSC into proposed
2011-06-16 09:31:32 +03:00
Peter Marschall
6c24bd5cff
opensc-explorer: silence compiler warnings
2011-06-16 09:30:55 +03:00
Martin Paljak
27572537ce
FinnishEid: fix the symbolic names for FINeID v2 cards with 2048 keys and restore compatibility with v2 cards with 1024 keys.
...
The more proper name for the 2048bit cards could be "v2.5".
Thanks to jem@iki.fi , kivinen@iki.fi and tuju@iki.fi for the patch.
2011-06-15 14:10:37 +03:00
Martin Paljak
6e70c09012
Merge branch 'github-transition' into proposed
2011-06-15 11:07:52 +03:00
Martin Paljak
0ae996254f
Merge branch 'pkcs11' into proposed
2011-06-15 11:07:23 +03:00
Martin Paljak
f4c39e20b1
Merge remote-tracking branch 'ludovic/PCSCv2_PART10_PROPERTY_bMaxPINSize' into proposed
2011-06-15 11:06:38 +03:00
Martin Paljak
6690975498
Merge remote-tracking branch 'peter/tools-20110611' into proposed
2011-06-15 11:06:30 +03:00
Martin Paljak
a3a8ae3ef9
Merge remote-tracking branch 'peter/OpenPGP-20110611' into proposed
2011-06-15 11:06:23 +03:00
Martin Paljak
d4e90c171a
Changes to build scripts requires for Git transition
2011-06-15 10:58:37 +03:00
Ludovic Rousseau
75524a5be8
Fix PIN min and max sizes for pinpads
...
Some pinpads do not support PIN size less than 4 or greater than 8.
PC/SC v2 part 10 allows to ask the driver/reader for the supported
values. This avoids to have the SECURE PIN CCID command rejected by the
reader.
This should fix OpenSC ticket #361 "card-entersafe should ask the pinpad
reader for the maximum pin size"
2011-06-14 15:54:49 +02:00
Ludovic Rousseau
3b63bf351e
Add PCSCv2_PART10_PROPERTY_* values
...
These are the tag values returned by PC/SC v2 part 10
FEATURE_GET_TLV_PROPERTIES command.
2011-06-14 15:54:49 +02:00
Viktor Tarasov
2ffa346eff
OpenSC.msi: install opensc.dll into the 'tools' directory
...
Now the DLLs installed into the 'system' directory are static.
Only opensc tools depend on opensc.dll.
2011-06-14 14:56:49 +02:00
Viktor Tarasov
c2abd9fd16
win32: build static version of the onepin PKCS#11 module
2011-06-14 14:38:58 +02:00
Ludovic Rousseau
40cb1c9e35
Merge remote branch 'upstream/master'
2011-06-14 14:00:18 +02:00
Ludovic Rousseau
8936901e2b
Correctly wait for card event
...
The timeout parameter of SCardGetStatusChange() is a DWORD (unsigned
int). An int timeout parameter was used instead.
The problem happens on 64-bits architectures where DWORD is 64-bits long
and int is only 32-bits long. The sign extension C mechanism transforms
the PC/SC value INFINITE into -1 instead of 4294967295.
See http://www.opensc-project.org/pipermail/opensc-devel/2011-June/016831.html
"Kobil KAAN Advanced Reader, "waiting for card" timeout"
2011-06-14 13:50:37 +02:00
Martin Paljak
5a23069671
pkcs11: only C_GetFunctionList needs to be exported, calling applicatinos must locate function pointers though it after dlopen()
2011-06-14 14:41:29 +03:00
Viktor Tarasov
a7ea231989
win32: build only static version of the OpenSC minidriver
2011-06-14 11:51:21 +02:00
Viktor Tarasov
b9f0513744
win32: build only static version of the PKCS#11 module
2011-06-14 11:47:01 +02:00
Viktor Tarasov
6bddab7417
win32: 'Minimal Size' code optimization
2011-06-14 11:34:25 +02:00
vtarasov
a6b7743088
pkcs15: add comments for the authentication object data type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5569 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-13 09:23:30 +00:00
Ludovic Rousseau
9ef95c71e6
Merge branch 'master' of https://github.com/LudovicRousseau/OpenSC
2011-06-13 10:12:22 +02:00
vtarasov
ba64c5573d
pkcs11: framework-pkcs15: invalid function name
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5568 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-11 20:17:30 +00:00
Peter Marschall
2faad42325
opensc-explorer: consolidate filename generation
...
* add new function path_to_filename() that converts a path into
filename, and returns a static buffer to it
* convert all occurrences where file names get generated
to using this function
Signed-off-by: Peter Marschall <peter@adpm.de>
2011-06-11 09:33:30 +02:00
Peter Marschall
c03eedde54
opensc-explorer: use util_hex_dump() in do_info()
...
Use standard function util_hex_dump() in do_info() instead of
enumerating lists of bytes ourselves.
Signed-off-by: Peter Marschall <peter@adpm.de>
2011-06-11 09:33:30 +02:00
Peter Marschall
12fce0f329
opensc-explorer: replace if..else with ?:
...
Use the easier to read & shorter expression
path->type = (is_id) ? SC_PATH_TYPE_FILE_ID : SC_PATH_TYPE_PATH;
nstead of the longer, but equivalent if () .. else construction.
Signed-off-by: Peter Marschall <peter@adpm.de>
2011-06-11 09:33:30 +02:00
Peter Marschall
52b601ee53
opensc-explorer: re-factor do_apdu()
...
* allow double-quoted strings besides hexdata in ADPU generation
* detect errors in parameter parsing
* use utility function to print bytes sent,
fixing an error that only showed parts of the APDU wheni
it was generated from multiple arguments
Signed-off-by: Peter Marschall <peter@adpm.de>
2011-06-11 09:33:30 +02:00