martin
6277099a27
pkcs11-tool: correct typos about --login-type option, change id -> ID in help texts.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5448 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-17 13:27:13 +00:00
martin
18baf42780
pkcs11-tool: move --module to the first position in help text and make it mandatory.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5447 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-17 13:27:09 +00:00
vtarasov
ce79a61d30
tools: print value of 'BOOLEAN' asn1 type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5446 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-16 08:32:07 +00:00
vtarasov
38473e1ea6
pkcs15-tool: for PIN object print 'Auth ID'
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5445 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-14 18:00:08 +00:00
vtarasov
a44ec385bd
iasecc: no support for SHA256 in the OpenSSL previous to v0.9.8
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5444 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 16:11:06 +00:00
vtarasov
65e10c29ad
libopensc: add description for the 'remote data' data types
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5443 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 15:34:03 +00:00
vtarasov
c3294c9f74
suspend commit of SM support until the nearest release
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5442 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 14:04:55 +00:00
vtarasov
d04dd5c649
configure: add configuration option for support of 'Secure Messaging', desabled by default
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5441 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 13:27:25 +00:00
vtarasov
c7ed3da502
libopensc: authentIC: use macros; use common CPLC data type
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5440 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 12:57:18 +00:00
vtarasov
e6a3d92de7
libopensc: SM related errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5439 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 12:50:24 +00:00
vtarasov
4fbb37ae7e
libopensc: 'remote data' related procedures: init, allocate, free
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5438 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 12:44:31 +00:00
vtarasov
292d561882
libopensc: move declaration of 'serial number' related data types from 'opensc.h' to 'types.h'...
...
also define CPLC and 'remote_data' data types.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5437 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-13 12:19:29 +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
cbecf23395
iasecc: when getting data for qualified signature, take the last SHAxx block from the input data ...
...
... and not from the SHAxx-CTX, to avoid big/little endian uncertainty
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5435 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-10 08:24:27 +00:00
vtarasov
16abe7f3a7
pkcs11: Ticket #353 : in pkcs15init framework allocate only one slot with uninitialized token ...
...
aldo, when allocating existing slot to the card, return an error if there is no more free virtual slot.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5434 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-09 17:11:13 +00:00
vtarasov
1e025a0ded
iasecc: support the digital signature with RSA scheme PKCS#1 SHA-256 ...
...
in this mode the final digest (SHA-256) step has to be performed by card.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5433 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-09 15:31:02 +00:00
vtarasov
1f892af9eb
pkcs15init: non-unique ID is forbidden for the public key objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5432 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-08 15:53:39 +00:00
vtarasov
81dd8b7775
libopensc: export 'sc_do_log_noframe' instead of internal 'sc_do_log_va'
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5431 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-08 08:10:16 +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
vtarasov
8e75d971cb
asn1: when encoding the OID, make sure that unused part of input data is properly initialized
...
it's a supplement to r5355.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5429 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-08 07:59:16 +00:00
martin
34302525fc
MiniDriver: add two exports used by MiniDriver. PKCS#1 related functions could be exported, internal logging should be eventually fixed in MiniDriver instead.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5428 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-05 14:26:27 +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
andre
79db564732
piv-tool.c: Leftover from r5412.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5426 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 17:17:28 +00:00
andre
85b40a553c
pkcs11-tool.c:54: warning: missing initializer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5425 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 16:45:51 +00:00
andre
03b4891c1e
pkcs15-pubkey.c:975: warning: missing initializer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5424 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 16:45:01 +00:00
vtarasov
1b7a320f45
doc: pkcs11-tool: precise the usage of 'write-object' argument
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5423 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 16:28:34 +00:00
vtarasov
fc07974be8
iasecc: pkcs15init: test for the wrong error code was used ...
...
in 'Delete SDO' procedure to ignore the 'SDO don not exist' error.
Thanks to Gilles Blanc.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5422 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 11:41:13 +00:00
vtarasov
dc55351767
pkcs11: hide empty slots ...
...
The list of slots returned by C_GetSlotList() contains:
- if present, virtual hotplug slot;
- any slot with token;
- without token(s), one empty slot per reader;
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5421 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-04 07:17:28 +00:00
vtarasov
822fdc7f38
pkcs15init: pkcs15init emulator for PIV card will not be commited
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5420 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-03 07:55:38 +00:00
vtarasov
0783ffd4c7
iasecc: pkcs15init: when deleting SDO, do not try to overwrite 'non-updateable' SDO attribut
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5419 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-03 07:54:13 +00:00
vtarasov
2aa4673577
iasecc: obsolete syntax of the 'Adele Common' card profile
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5418 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-03 07:50:26 +00:00
martin
1f2acc5bcb
opensc-explorer: use relative addressing in do_asn1
...
'asn1' takes a file_id as argument. This should be selected relative
to the currently selected DF instead of being treated as an ID.
(compare with 'get' & 'cat' that also take a file_id argument)
Patch from Peter Marschall <peter@adpm.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5417 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-03 05:39:24 +00:00
martin
59e3e659b5
opensc-explorer: more room for commands in 'help'
...
In the output of the interacive command 'help', leave more room
for the command names so that they do not flow into the descrition.
Patch from Peter Marschall <peter@adpm.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5416 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-03 05:38:59 +00:00
vtarasov
ab225db83d
pkcs15init: more of debug messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5415 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-01 20:21:31 +00:00
vtarasov
1e59a09dbd
pkcs15init: for the EC key put the EC specific data into the 'params' member of 'key-info' data ...
...
; more of debug messages;
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5414 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-01 20:14:06 +00:00
vtarasov
5e50a14b3f
libopensc: introduce 'key-params' data type that contains pointer, size and 'free' handler ...
...
http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016441.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5413 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-01 19:18:14 +00:00
vtarasov
08c9328e62
piv-tool: remove the Oberthur's specific features of the PIV card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5412 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-01 18:44:53 +00:00
vtarasov
c70e0ae982
iasecc: use atr mask to accept the Gemalto's IAS/ECC card without MF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5411 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-30 17:51:43 +00:00
martin
3637d60242
manpages: unify the look and feel of "See also" sections, removing references to missing manual pages.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5410 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-29 12:15:54 +00:00
martin
23bbe9e203
PreReleases: update NEWS file for 0.12.1-rc1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5409 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-29 09:47:06 +00:00
martin
e477d66d07
NightlyBuilds: prepare for OpenSC 0.12.1-rc1 PreReleases
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5408 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-29 09:02:09 +00:00
vtarasov
e93dd598c2
doc: describe the 'verify-pin' option in pkcs15-tool documentation ...
...
Thanks to Juan Antonio.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5407 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 15:01:38 +00:00
vtarasov
49fb08f923
pkcs15init: use macro for the maximal number of linked ACL for one operation ...
...
Thanks to NdK.
http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016448.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5406 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 14:45:23 +00:00
vtarasov
8098e82b16
libopensc: in 'READ BINARY' ignore the 'FILE_END_REACHED' error ...
...
see discussion
http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016413.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5405 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 14:37:57 +00:00
vtarasov
5471aea023
libopensc: new error code macros -- 'corrupted data' and 'file end reached'
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5404 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 14:28:03 +00:00
vtarasov
670942a0b4
iasecc: when preparing data to update PRIVATE KEY SDO use index to enumerate the SDO components
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5403 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 14:12:40 +00:00
vtarasov
ad478eb9cc
iasecc: write 'compulsorily use' data for the new key slot ...
...
Once written the 'compulsorily use' data cannot be changed.
Write this data immediately after a new key slot has been created.
It helps to avoid further confusion between 'use new key slot' and 'reuse existing slot'.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5402 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 14:06:58 +00:00
vtarasov
6c3b43f636
iasecc: when signing short data sequence with PSO_DST ...
...
... 'last-hash-step' APDU do not includes the 'pre-hash' and 'counter' data -- only the 'last-data-block'.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5401 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 13:56:31 +00:00
vtarasov
06347f3a44
iasecc pkcs15init: when creating key slot, there is no needs to write zero value components
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5400 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-27 13:45:27 +00:00
vtarasov
81e1676122
iasecc pkcs15init: create/delete SDO private/public RSA key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5399 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 17:32:34 +00:00