Viktor Tarasov
53ed5dc502
win32: build: 'version-info' resource for each target
2013-12-29 22:00:29 +01:00
Viktor Tarasov
1d45eea907
md: implement 'CardChangeAuthenticator'
2013-12-29 22:00:29 +01:00
Viktor Tarasov
f72c6fe625
md: implement CardUnblockPin
2013-12-29 22:00:28 +01:00
Viktor Tarasov
1dc5a26a8d
md: implement CardGetChallenge
2013-12-29 22:00:28 +01:00
Viktor Tarasov
5564b9973b
md: when PIN blocked ensure that 0 returned as "tries left"
2013-12-29 22:00:28 +01:00
Viktor Tarasov
89523a99ce
md: use "ignore PIN length" configuration option
...
With this option in 'true' the short PINs will not be ignored by
pkcs#15 framework and applied to card
2013-12-29 22:00:28 +01:00
Viktor Tarasov
075ff22890
md: generic procedure to get bool config option
2013-12-29 20:05:35 +01:00
Viktor Tarasov
aaa4489b7f
md: configuration options to refuse create-container mechanism
...
used rather for the debug -- allows to refuse, for example,
'key-import' create container mechanism and to compel the application (IE)
to generate key on card (rather then generate key by soft and then import it onto card).
2013-12-29 20:05:35 +01:00
Viktor Tarasov
f7a9ac90e8
md: config option 'use GUID as crypto object's label'
2013-12-29 20:05:35 +01:00
Viktor Tarasov
f71e241f03
md: config option 'GUID as ID'
...
allows to set the container's GUID value as ID of the key and certificate PKCS#15 objects.
2013-12-29 20:05:35 +01:00
Viktor Tarasov
692791e8ed
md: set length of container GUID
2013-12-29 20:05:35 +01:00
Viktor Tarasov
0dc39c1125
pkcs15: use value/length pair to hold the object's GUID
...
GUID can be presented by non-printable string
2013-12-29 19:47:42 +01:00
Viktor Tarasov
98325ab7f2
pkcs15: export 'sc_pkcs15_serialize_guid' ...
...
change name of exported 'sc_pkcs15_get_guid' to 'sc_pkcs15_get_object_guid' ;
add more 'CALLED' and 'RETURN' macros ;
2013-12-29 19:46:56 +01:00
Viktor Tarasov
3140c6c43b
md: use, if available, internal cardcf data
2013-12-29 19:46:56 +01:00
Viktor Tarasov
411cbfb403
md: use if available the GUID from the prkey info ...
...
the proprietary on-card data can contain the GUIDs created by proprietary MW,
these data are parsed by card driver and put into the internal pkcs15 private key data
to be accesible in the different OpenSC frameworks
2013-12-29 19:46:56 +01:00
Viktor Tarasov
e855ac800e
pkcs15: introduce 'cmap-record' data into the private key info
...
existing 'guid' obejct's data replaced by the one in private-key info
New CMAP record data used by pkcs15init emulator for the cards that have
the MD specific on-card data
2013-12-29 19:46:30 +01:00
Viktor Tarasov
f641ebd248
fixed errors reported by cppcheck: part 1
...
partially applied the pull request #182 from Frank Morgner -- updated the common frameworks source files
2013-09-29 20:28:45 +02:00
Tim Taylor
2741f23641
Set output buffer len variable if padding removed.
2013-09-29 19:14:01 +02:00
Tim Taylor
cd1116ac7c
Use reader pin pad if available and allowed
2013-09-29 19:08:51 +02:00
Tim Taylor
b731dac518
Reset return code to success if pubkey read from cert.
2013-09-29 18:31:33 +02:00
Viktor Tarasov
12e0ac1aa6
minidriver: add registers file for feitian cards
2013-08-10 22:25:30 +02:00
Viktor Tarasov
e1da77e253
md: fix length of stripped data in RSADecrypt
2013-05-27 16:25:25 +02:00
Viktor Tarasov
df9a4d0b2c
pkcs15: for 'sc_pkcs15_cer's data use the 'der' object type
...
To hold the raw certificate blob in 'sc_pkcs15_cert' data use the 'sc_pkcs15_der' data type.
also:
; in 'pkcs15-cert.c' use short call of the debug messages;
; in 'destroy-object' pkcs15 framework handler take into account the multi-application cards:
-- when binding card use the application info;
-- when finalizing profile use the application ID.
2012-09-30 22:54:52 +02:00
Ludovic Rousseau
ea40e7fe24
Use AM_CPPFLAGS instead of INCLUDES
...
Fix autoreconf warnings:
$ autoreconf -vis -Wall
[...]
src/common/Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/libopensc/Makefile.am:19: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/minidriver/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/pkcs11/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/pkcs15init/Makefile.am:36: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/scconf/Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/sm/Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/tests/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/tools/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
2012-09-25 23:03:38 +02:00
Andreas Schwier
deeb1cde96
sc-hsm: Added registry key file to makefile.am
2012-08-24 09:25:45 +02:00
Andreas Schwier
30e6504720
sc-hsm: Add registry key to enable SmartCard-HSM for use with minidriver
2012-08-23 22:06:01 +02:00
Andreas Schwier
cb46192d89
minidriver: Added support for ASCII encoded serial numbers
2012-08-23 22:06:01 +02:00
Viktor Tarasov
da894500c9
minidriver: build dependence on opensc_a.lib and pkcs15init.lib
...
spelling of comments and debug messages
2012-06-08 20:17:36 +02:00
Viktor Tarasov
7819e5ab89
minidriver: 'write' mode
...
Picked from SM branch of OpenSC, where it was tested mostrly with IAS/ECC card.
Also was used with rutoken and other cards.
2012-05-31 17:21:21 +02:00
Viktor Tarasov
177af40535
md: prototype of sc_pkcs15_get_guid() has been changed
...
introduced 'flags' parameter
2012-05-30 09:18:03 +02:00
Alon Bar-Lev
df8715849d
Remove libltdl: Remove ltld references
...
http://www.opensc-project.org/pipermail/opensc-devel/2011-December/017490.html
cherry-picked from 'libtool' branch of Alon Barlev's github project git://github.com/alonbl/OpenSC.git
and rebased
Remove libltdl: Remove ltld references
(cherry picked from commit a350326c520c5b0cb185f90946648633f4d0e456)
Remove libltdl: Detect libdl
(cherry picked from commit 51e7de45c11823460e776492dcbd40e60583a7eb)
Remove libltdl: Use libscdl
(cherry picked from commit 09f3eadb8a1a47407c011dcd3d5ce461516f3b87)
Remove libltdl: Cleanup libscdl
(cherry picked from commit 52d5f1be01146079e3a6fad1c88ebb0f577d0a94)
Remove libltdl: Cleanup libscdl usage at Microsoft VC build
Untested, I don't have the environment, Martin, please test.
(cherry picked from commit 7fb18f8d0b0bae6d181981a0c71190440e917c2c)
Change-Id: I73c98ccb9365584b12f4b0b97b69316a190b6e45
2012-03-17 20:55:05 +01:00
Viktor Tarasov
a7ea231989
win32: build only static version of the OpenSC minidriver
2011-06-14 11:51:21 +02:00
vtarasov
f0ab932031
minidriver: 'PinObject-info' data type is changed for the 'AuthenticatioObject-info' data type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5554 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-05 17:03:23 +00:00
vtarasov
a045543cc1
minidriver: unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5514 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-29 11:50:13 +00:00
vtarasov
319cb6f071
minidriver: when reading 'cardid' file return the content of 'cardid' file ...
...
'cardid' size is 16 bytes.
It's initialized by the 'empty-cardid' value (00-0F) overwritten (from left) by the last 16 (or less) bytes
of the card's serial.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5513 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-29 11:48:50 +00:00
vtarasov
07e0af59b0
minidriver: in CardAuthenticatePin() the PIN to verify is selected by ROLE_USER, thanks to HOURY William
...
http://www.opensc-project.org/pipermail/opensc-devel/2011-May/016633.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5436 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-11 16:52:13 +00:00
vtarasov
1176c59370
libopensc: export the wrapper for the internal log function dedicated to minidriver
...
http://www.opensc-project.org/pipermail/opensc-commits/2011-May/011049.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5430 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-08 08:07:03 +00:00
martin
e4711a485e
WindowsInstaller: don't link against winscard.lib, winscard.dll is loaded on runtime. Link minidriver against correct opensc.lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5427 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-05 14:03:36 +00:00
martin
cdf88a895b
WindowsInstaller: amend r5329, object name is not the target name.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5331 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-12 07:49:07 +00:00
martin
44cf3d06ae
MiniDriver: rename cardmod to minidriver in source.
...
Also change some grammar, whitespace (reported by git) and wording (Opensc->OpenSC) issues.
Add some comments here and there.
See http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016261.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5329 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-12 07:40:12 +00:00