Commit Graph

7179 Commits

Author SHA1 Message Date
Jakub Jelen f885ee4a17 opensc.conf: Make the example syntax correct 2018-09-12 21:24:39 +02:00
Frank Morgner 66fe060363 fixed gcc 8 compiler waring
closes https://github.com/OpenSC/OpenSC/pull/1474
2018-09-12 13:10:06 +02:00
Raul Metsma 430a9b3f5a Commit c463985fed broke EstEID PIN verify
Signed-off-by: Raul Metsma <raul@metsma.ee>
2018-09-12 12:30:05 +02:00
Frank Morgner 719d2cbe21 Updated NEWS 2018-09-12 09:45:19 +02:00
Frank Morgner 83c0bff640 pgp: added new ATRs to windows installer 2018-09-11 22:18:19 +02:00
Alon Bar-Lev d8a2a7bf88 reader-ctapi: ctapi_connect: remove unused variable
from day 1 return value of _sc_parse_atr was ignored.
2018-09-09 14:55:28 +02:00
alex-nitrokey 083c18045e Make deciphering with AUT-key possible for OpenPGP Card >v3.2 (fixes #1352) (#1446) 2018-09-06 10:57:23 +02:00
alex-nitrokey 748234b7cc Fix SM algorithm in extended capabilities 2018-09-05 23:42:14 +02:00
Frank Morgner 012a425819 fixed generating files documentation 2018-09-05 23:18:55 +02:00
Frank Morgner ea2024decf appveyor: fix release build 2018-09-05 09:59:00 +02:00
Frank Morgner 3352960265 fixed maintainer-clean target 2018-09-05 08:55:14 +02:00
Frank Morgner 62a2847300 add missing files.xml to distribution 2018-09-04 13:55:19 +02:00
Frank Morgner 39bd1ddd58 fixed wrong condition
fixes https://github.com/OpenSC/OpenSC/issues/1465
2018-09-04 13:51:40 +02:00
Frank Morgner ddec3a437c remove -Release in windows artifact 2018-08-31 16:38:51 +02:00
Frank Morgner e238f4d6fb don't include tag in windows artifact 2018-08-31 16:38:51 +02:00
alex-nitrokey b572b383b2 Add supported algorithms for OpenPGP Card (Fixes #1432) (#1442) 2018-08-31 14:38:14 +02:00
asc 2b60a0db0f Add support for SmartCard-HSM 4K (V3.0) 2018-08-31 13:42:44 +02:00
Frank Morgner 972f9eb35b fixed PKCS11-Spy dll default
fixes https://github.com/OpenSC/OpenSC/issues/1464
2018-08-31 13:36:33 +02:00
Frank Morgner c79adb6c11 include PACKAGE_NAME in msi instead of VSVER
uploads nightly only for VS12 build
2018-08-31 13:34:33 +02:00
Frank Morgner a3ca935b16 win32: use standard build of zlib
fixes https://github.com/OpenSC/OpenSC/issues/1461
2018-08-31 13:34:33 +02:00
Frank Morgner 0ddfd2d521 deploy only when on master 2018-08-30 22:06:21 +02:00
asc 0ab5b92dc5 Allow building tests on Ubuntu 16.04, which has libcmocka 1.0.1 (#1405) 2018-08-30 13:27:36 +02:00
Frank Morgner b5a6f9aa6e prepare 0.19.0 2018-08-27 13:40:20 +02:00
Frank Morgner db438f61c1 ias/ecc: fixed GET CHALLENGE 2018-08-24 13:59:03 +02:00
Frank Morgner 94f9fdf145 ias/ecc: fixed card detection
regression of 439a95f2d
2018-08-24 13:51:15 +02:00
Frank Morgner 5daec17e32 ias/ecc: ignore missing serial on card initialization
fixes problem in card detection introduced in
50b000047c
2018-08-24 13:50:53 +02:00
Frank Morgner 5a25bd33cc macos: use HFS+ for backward compatibility
fixes https://github.com/OpenSC/OpenSC/issues/1398
2018-08-24 09:27:13 +02:00
Frank Morgner 5b428e4323 upload CI build artifacts to OpenSC/Nightly
builds are uploaded as seperate branches to
https://github.com/OpenSC/Nightly If the repository gets too big,
branches can easily be removed. The repository is written via Travis CI
and AppVeyor with a secure token from user https://github.com/OpenSC-CI
2018-08-24 09:23:58 +02:00
Raul Metsma 336b282324 Reuse gp_select_aid
Signed-off-by: Raul Metsma <raul@metsma.ee>
2018-08-23 20:37:38 +02:00
Doug Engert 719ec39b3e Use sc_asn1_read_tag to read first tag of partially block (#1454)
Sc_asn1_read_tag can return SC_ERROR_ASN1_END_OF_CONTENTS
which indicates the tag and length are OK, but any value
is not completely contained in the buffer supplied. card-piv.c
can use this when reading just the beginning of a object to
determine the size of a buffer needed to hold the object.
2018-08-23 20:35:24 +02:00
Frank Morgner 97f0a341b0 fixed typo 2018-08-23 10:14:25 +02:00
Frank Morgner 70c4813f30 fixed Dereference before null check 2018-08-23 09:59:45 +02:00
Frank Morgner 67fbf15741 fixed NULL dereference 2018-08-23 09:51:04 +02:00
Priit Laes 45f407c021 Mark driver-specific global sc_atr_table structures as const
As most of the drivers do not modify these, we can mark them as const.
Two drivers that we cannot convert are dnie and masktech.

section                 size
.data                  35232 ->   25472
.data.rel.ro           36928 ->   46688
2018-08-22 22:50:30 +02:00
Priit Laes 2eae5e70f5 Mark atr table argument as const in match_atr_table and _sc_match_atr functions
This allows us to mark driver-specific atr tables as constants.
2018-08-22 22:50:30 +02:00
Frank Morgner fcd719d30f
Merge pull request #1447 from Jakuje/x41sec-merge
Security issues idefnitifed by fuzzing. For more information, see the blog post:

https://www.x41-dsec.de/lab/blog/smartcards/
2018-08-20 15:11:51 +02:00
Frank Morgner ff8ec86f26 avoid looping forever in GET CHALLENGE
fixes https://github.com/OpenSC/OpenSC/issues/1440
2018-08-20 14:37:20 +02:00
Frank Morgner fcf00e66cd Starcos: added ATR for 2nd gen. eGK
fixes https://github.com/OpenSC/OpenSC/issues/1451
2018-08-20 14:27:02 +02:00
Frank Morgner 59d634e9e8 fixed low privilege `make distcheck`
regression of b0a20fa7ca
2018-08-20 12:03:44 +02:00
Frank Morgner 48d30ac7da Don't overwrite existing opensc.conf
fixes https://github.com/OpenSC/OpenSC/issues/1449
partially reverts c003f3825e
2018-08-20 12:03:44 +02:00
Jakub Jelen 5ec26573da coolkey: Do not overflow allocated buffer 2018-08-14 16:13:22 +02:00
Jakub Jelen 79c0dbaa4e cac: Avoid OOB reads for inconsistent TLV structures 2018-08-14 16:13:22 +02:00
Frank Morgner 50b000047c ias/ecc: disable iccsn parsing
if someone wants to implement this with memory bounds checking, please
raise your hands
2018-08-14 16:13:22 +02:00
Frank Morgner 0b44793900 tcos: use ISO7816 fci parser 2018-08-14 16:13:22 +02:00
Frank Morgner 30fe0ad453 pgp: fixed integer underflow 2018-08-14 16:13:22 +02:00
Frank Morgner 92a98cb3bb mcrd: converted assert to proper error handling 2018-08-14 16:13:22 +02:00
Frank Morgner 78f0055338 fixed uninitialized use of variable 2018-08-14 16:13:22 +02:00
Frank Morgner 03628449b7 iasecc: fixed unbound recursion 2018-08-14 16:13:22 +02:00
Frank Morgner 5807368ed4 fixed bad memory access 2018-08-14 16:13:22 +02:00
Doug Engert 384626533e PIV Security Changes
Add return code if "out" is smaller then received data.

Remove extra blanks.
2018-08-14 16:13:22 +02:00