Frank Morgner
0898d06944
fixed and cleaned up nmake Makefiles
2016-06-23 07:35:53 +02:00
Frank Morgner
25b52f6ada
don't use a def file for PKCS#11 modules
...
exports are already declared in pkcs11.h. declaring them twice will
yield LNK4197.
2016-06-14 14:58:11 +02:00
Frank Morgner
050c62f7df
added parameter checking to sc_right_trim
...
fixes conversion from 'size_t' to 'long', possible loss of data
2016-06-14 14:58:11 +02:00
Frank Morgner
836842a6bb
remove unused scconf_entry
2016-06-14 14:57:58 +02:00
Frank Morgner
72dda66be8
fixed possible loss of data
2016-06-14 14:57:08 +02:00
Frank Morgner
9983c4185f
fixed incompatible types ('DWORD *' to 'size_t *')
2016-06-14 14:11:26 +02:00
Frank Morgner
6b27d7392a
Merge pull request #790 from nunojpg/master
...
fix #788 pkcs15-tool --read-ssh-key crash
2016-06-06 21:40:03 +02:00
Jakub Jelen
f52f6bb310
[p15dump] Error message with a reason for missing unusedSpace file
2016-06-06 21:36:09 +02:00
Nuno Goncalves
d97ee79333
fix #788 pkcs15-tool --read-ssh-key crash
...
Don't try to free again pubkey if the parent cert has already been freed.
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2016-06-06 18:29:03 +01:00
Frank Morgner
9066d8f999
simplyfied netkey-tool
...
fixes conversion from 'long' to 'u8', possible loss of data
2016-06-05 02:28:50 +02:00
Frank Morgner
b9cefa6825
removed unused variable
2016-06-05 02:28:50 +02:00
Frank Morgner
192c3f6182
Merge pull request #694 from germanblanco/dnie_memory_leaks_and_sm_wrapping
...
DNIe. Removing all memory leaks and using SM wrapping and unwrapping.
2016-06-04 01:58:22 +02:00
Frank Morgner
04825d8d7e
avoid using an uninitialized buffer
2016-06-04 01:22:28 +02:00
Viktor Tarasov
7eeba1fba8
Merge branch 'towards-opensc-0.16.0'
...
version.m4 updated for official release 0.16.0
coverity scan switched to 'master'
2016-06-03 11:19:51 +02:00
Viktor Tarasov
b8dcf91515
pkcs11-tool: print in hex the code of unknown mechanism
2016-06-03 11:12:03 +02:00
Mouse
2ba87640d2
Fixed bug in derive_key(), where correct execution depended on undefined compiler behavior
2016-05-31 01:59:40 +02:00
Frank Morgner
59152e1acf
Merge pull request #766 from frankmorgner/towards-opensc-0.16.0
...
Fixed memory problems
2016-05-31 01:50:21 +02:00
Frank Morgner
46efb02fec
fixed memory leak of reader's vendor name
2016-05-26 14:39:41 +02:00
Frank Morgner
fcf9b9e706
fixed missing initialisation and bad memory access
2016-05-26 13:46:57 +02:00
Viktor Tarasov
1da49757cb
fix NEWS, few debug messages more
2016-05-26 10:59:58 +02:00
Jakub Jelen
e309d0f06f
[p15dump] Do not attempt to access NULL pointer
2016-05-23 11:41:48 +02:00
Jakub Jelen
462bebd380
Unbreak tests without arguments (automatic selection of the reader)
2016-05-23 11:41:48 +02:00
Viktor Tarasov
0e1c8f9c04
libopensc: avoid call to memset() with zero length
...
@mouse07410 has asked for it in
https://github.com/OpenSC/OpenSC/issues/688#issuecomment-219433611
VTA: I do not see the difference (if the other arguments are properly used),
but assume that @mouse07410 has it's own valid reasons
Also included the few coding style touches.
2016-05-23 11:41:48 +02:00
Henrik Andersson
74493ca73f
Add support for RSA with keylength 2048
...
This solves sign issues with swedish eID cards which have
RSA keys with length 2048. This also solves the issue #726 .
2016-05-16 11:12:53 +02:00
Jakub Jelen
ae47e06d57
Typos
2016-05-16 10:58:22 +02:00
Frank Morgner
343c0f8d57
pkcs15-starcert.c: Use two hex digits with sc_pkcs15_format_id
2016-05-12 09:58:28 +02:00
Frank Morgner
b568bbc256
pkcs15-pteid.c: Use two hex digits with sc_pkcs15_format_id
2016-05-12 09:58:28 +02:00
Frank Morgner
03b4740b2e
pkcs15-infocamere.c: Use two hex digits with sc_pkcs15_format_id
2016-05-12 09:58:28 +02:00
Frank Morgner
3f0de6e638
pkcs15-gemsafeGPK.c: Use two hex digits with sc_pkcs15_format_id
2016-05-12 09:58:28 +02:00
Frank Morgner
a2e05e8869
pkcs15-atrust-acos.c: Use two hex digits with sc_pkcs15_format_id
2016-05-12 09:58:28 +02:00
Doug Engert
e46bfea8b9
Use two hex digits with sc_pkcs15_format_id
...
Avoid having problems with sc_hex_to_bin when called from sc_pkcs15_format_id
both for id and auth_id numbers
Changes to be committed:
modified: pkcs15-piv.c
2016-05-12 09:58:28 +02:00
Viktor Tarasov
ca2c1c56c8
libopensc: sc_hex_to_bin() accepts hex string with length 1
...
fix issue #751
2016-05-12 09:58:28 +02:00
Viktor Tarasov
e9786bfb34
oberthur: use short form of debug message calls
2016-04-28 11:16:03 +02:00
Viktor Tarasov
fc76e4ee6d
oberthur: fix max recv size when reading component
2016-04-28 11:15:27 +02:00
Viktor Tarasov
91a28c613c
libopensc: few debug messages more
2016-04-28 10:51:49 +02:00
Viktor Tarasov
6d4a4dfae0
oberthur: set to '0' memory of temp path
2016-04-27 20:09:29 +02:00
Viktor Tarasov
00b8416ba3
oberthur: allow read of info files without authentication
2016-04-27 20:08:45 +02:00
Viktor Tarasov
a4dfb7b07a
tools: fix help message
2016-04-27 20:07:54 +02:00
Viktor Tarasov
5be51ea3e2
pkcs15init: authentIC: init card/pin not supported
2016-04-27 15:48:18 +02:00
Andreas Schwier
c63ba858e3
Detect premature end hexstring
2016-04-26 18:29:51 +02:00
Viktor Tarasov
163fc42ee6
readers: coding style for log messages
2016-04-26 18:26:46 +02:00
Viktor Tarasov
e95b515163
reader: by default only short APDU supported
...
default values of reader's max send/receive sizes correspond to only short APDU supported;
these values can be overwritten by reader itself with the proper value of dwMaxAPDUDataSize from TLV properties,
or with the corresponding options in OpenSC configuration.
resolves issue #735
2016-04-26 18:26:43 +02:00
Andreas Schwier
41f34fdbcf
sc-hsm: Fix public key usage for keys extracted from CVC
2016-04-17 13:06:46 +02:00
velter
73b5d8421a
Fix for #720
...
This is a cleaner fix for #720 which take part of #721 and #730
A driver private struct is used which allow to remove all globals which might changed base on the token in use.
2016-04-17 13:05:35 +02:00
Thomas König
a3e7ebec42
Proposed fix for #723
2016-04-17 13:00:37 +02:00
Viktor Tarasov
09cbcd80f4
md: use register to enable debug log
2016-04-17 12:43:27 +02:00
Viktor Tarasov
66515989d8
win32: method to get config option from registers
2016-04-17 12:43:18 +02:00
Viktor Tarasov
89a5b5893b
md: use GUID without frame
2016-04-08 11:02:53 +02:00
Viktor Tarasov
5c0a37c53d
pkcs15init: use aux-data to set MD container GUID
2016-04-08 11:02:53 +02:00
Viktor Tarasov
5bbc86eb39
md: replace card specific with pkcs15 'aux-data' facilities
2016-04-08 11:02:53 +02:00