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
vtarasov
c9bf9bc22c
iasecc: 'DELETE SDO' card ctl ...
...
to be used by Obertbur's IAS/ECC card.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5398 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 17:29:08 +00:00
vtarasov
346490b953
iasecc: 'CREATE SDO' card ctl ...
...
; static function dedicated to emulate FCP data of application DF when it's not returned by card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5397 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 16:42:48 +00:00
vtarasov
3b9f5b94ae
iasecc: encode data for the SDO creation, ...
...
; dedicated function to parse ACLs from DOCP data;
; when converting ACL chack and parse ACLs;
; change prototype of the internal static functions.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5396 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 16:34:44 +00:00
vtarasov
5e6d310491
iasecc: pkcs15init profiles: add 'CREATE' acl for the Oberthur's application DF ...
...
Obertbur's card do not returns FCP for selected application DF.
Newly introduced option will supply the missing ACL when creating new objects or files.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5395 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 16:27:42 +00:00
martin
1cdb3fa971
APDU parsing: switch to Frank Morgner's implementation
...
Patch by Frank Morgner, proposed in
http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016419.html and
http://www.opensc-project.org/pipermail/opensc-devel/2011-April/016420.html :
* replace partly incorrect extended APU parsing implementation
with one factored-out in function sc_bytes2apdu() in apdu.c
* re-factor APDU parsing functions in
- opensc-explorer
- opensc-tool
- piv-tool
to make use of sc_bytes2apdu()
Thanks to Peter Marschall and Frank Morgner
This fixes #260 and #351 .
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5394 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-26 07:29:53 +00:00
alonbl
7d5ba618e0
maintainer-clean cleanup, thanks to JONSITO
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5393 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-25 09:45:25 +00:00
vtarasov
27cd40629e
iasecc: Oberthur's card strictly follows specification in 'IO buffer size' ...
...
Most of the card producers interpret 'send' values in 'IO buffer size' data as "maximum APDU data size" .
The last Oberthur's card strictly follows specification and interpret these values as "maximum APDU command size".
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5392 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-24 17:57:49 +00:00
vtarasov
a14bbe7e32
opensc-explorer: DF_NAME type path value should not be appended by the file ID ...
...
When composing path to file (for ex. to be read), if the type of parent DF is DF_NAME,
the value of the parent path is moved to the aid path member and
file ID takes place of the path value.
; 'cd ..' command takes into account the parent can be presented by DF_NAME
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5391 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-23 06:32:53 +00:00
vtarasov
54f3e8c423
pkcs15init: little correction of r5386
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5390 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-22 14:02:45 +00:00
vtarasov
6b04ab7650
pkcs15init: in 'change-attribute' procedure use card specific 'update DF' handler ...
...
... when it's available.
'Change-attribute' is used by pkcs15 framework for PKCS#11.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5389 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-22 14:00:47 +00:00
vtarasov
4fa9679463
pkcs15init: use dedicated function to fix the EC parameters ...
...
; use pointQ data to calculate intrinsic ID for the EC keys/certs
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5388 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-22 13:50:01 +00:00
vtarasov
9376b73d14
EC support: new exported function to fill up the EC parameters data ...
...
for ex. with the given named curve fills the 'OID' and 'encoded OID' members
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5387 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-22 13:35:57 +00:00
vtarasov
78d90c4765
EC support: introduce data type dedicated to EC parameters ...
...
EC parameters can be presented in a three forms: namedCurve, OID and implicit data.
This new data type will facilitate manipulation of ec-parameters in the OpenSC tools and library.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5386 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-22 13:08:45 +00:00
vtarasov
3e9b88d6d6
pkcs15init iasecc: old syntax in the profile of the Oberthur's generic application
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5385 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-21 17:20:39 +00:00
vtarasov
7db9532f00
pkcs11 framework-pkcs15: add EC key generation mechanism
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5384 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-21 16:29:13 +00:00
vtarasov
e430fe9d87
pkcs11-tool: add test procedure for EC keys ...
...
... for a while it includes key generation and data signing.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5383 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-21 16:18:23 +00:00
vtarasov
9758bb28bf
pkcs11: copy&past issue in r5356
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5382 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-21 16:14:36 +00:00