Frank Morgner
fccc42295d
OpenPGP: Added basic support for OpenPGP card V3
...
partially implements https://github.com/OpenSC/OpenSC/issues/1215
Refactored OpenPGP code so that future versions of the card will be
accessed using the logic for OpenPGP V2. We hope that backward
compatibility of the standard will keep the new versions functional.
2018-01-22 15:26:44 +01:00
Frank Morgner
16354f11af
OpenPGP: fixed selecting Applet
...
fixes https://github.com/OpenSC/OpenSC/issues/1230
2018-01-22 15:26:44 +01:00
Frank Morgner
44447b7801
fixed warnings about uninitialized data
2018-01-17 00:28:42 +01:00
Jakub Jelen
9b2023c7ae
SimpleTLV: Skip correctly two bytes after reading 2b size ( #1231 )
2018-01-17 00:28:05 +01:00
Frank Morgner
74e7200c31
macOS: fixed detection of OpenPACE package
2017-12-19 12:52:50 +01:00
Frank Morgner
b2cca65237
sc-hsm: check integrity of SM channel
...
cope with multiple processes that may reset the SM channel when
accessing the card at the same time
2017-12-13 12:22:27 +01:00
Frank Morgner
47993116da
macOS High Sierra: fixed dmg creation
...
fixes https://github.com/OpenSC/OpenSC/issues/1198
2017-12-05 08:27:55 +01:00
Frank Morgner
bb4bdc8a2c
CardOS: Try forcing max_send_size for PSO:DEC
...
Fixes https://github.com/OpenSC/OpenSC/issues/1208
Fixes https://github.com/OpenSC/OpenSC/issues/1118
Fixes https://github.com/OpenSC/OpenSC/issues/1005
Fixes https://github.com/OpenSC/OpenSC/issues/802
2017-12-04 21:09:46 +01:00
Frank Morgner
3e7f7e632c
SC-HSM: Don't block generic contactless ATR
2017-12-04 21:09:26 +01:00
Frank Morgner
804ac2b7f2
fixed compiler warning
2017-12-04 21:09:26 +01:00
Frank Morgner
5ca99febe3
ISO 7816-4 doesn't force a maximum for GET CHALLENGE
2017-12-04 21:09:26 +01:00
Frank Morgner
6f37229303
opensc-explorer/opensc-tool: Allow extended APDUs
2017-12-04 21:09:26 +01:00
Frank Morgner
d0d9b974a7
md: protect MD entry points with CriticalSection
...
CardDeleteContext may be called at any time, interrupting any ongoing
operation with the same PCARD_DATA. This leads to a race condition when
CardDeleteContext deletes, for example, the sc_context_t which the
interrupted call still wants to access. We have seen and fixed this
problem in https://github.com/OpenSC/OpenSC/issues/973 specifically for
the PIN entry process, however, it also applies to all other calls to
the md.
The new implementation removes the need for global data in the md.
2017-11-30 11:30:31 +01:00
Frank Morgner
9583d3b650
md: fixed memory leak
...
may be related to https://github.com/OpenSC/OpenSC/issues/1106
2017-11-30 11:30:31 +01:00
Frank Morgner
654ca69c47
initialize notifications in PKCS#11 and tools
...
... and don't panic when they are not initialized
2017-11-21 13:01:12 +01:00
Frank Morgner
3f0d5ce336
opensc-notify: register a desktop menu entry
...
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes https://github.com/OpenSC/OpenSC/issues/1186
2017-11-21 13:01:12 +01:00
Frank Morgner
4444d24f59
win32: generate PDB files for releases
...
https://msdn.microsoft.com/fsk896zz.aspx
fixes https://github.com/OpenSC/OpenSC/issues/1191
2017-11-21 10:54:48 +01:00
Frank Morgner
ddc9baed25
added missing opensc-asn1.1
...
fixes https://github.com/OpenSC/OpenSC/issues/1206
2017-11-21 10:42:58 +01:00
Jakub Jelen
09af8714ad
Avoid GCC 7 warnings with -Werror ( #1196 )
...
* Avoid GCC 7 warnings with -Werror
-Werror=implicit-fallthrough=
libopensc/card-incrypto34.c
not sure if this is a bug or intention
libopensc/card-rutoken.c
most probably intention
libopensc/card-westcos.c
remove bogus if so the compile is not confused
I will fill a separate bug to gcc probably
pkcs15init/pkcs15-iasecc.c
Simplify the log and avoid compiler confusion
sm/sm-common.c
explicit fallthrough
tools/pkcs11-tool.c
use explicit fallthrough comment
tools/pkcs15-init.c
The fallthrough is obvious here
-Werror=format-truncation=
libopensc/pkcs15-itacns.c
use explicit string lengths
pkcs11/framework-pkcs15.c
calculate the truncation
tests/pintest.c
avoid sprintf
tools/pkcs15-crypt.c
avoid sprintf
tools/pkcs15-init.c
calculate the truncation
2017-11-17 10:47:53 +01:00
Raul Metsma
514f898671
Fix reading EstEID certificates with T=0 ( #1193 )
2017-11-17 10:46:34 +01:00
Raul Metsma
f1aa2a61c9
Cleanup expired EstEID card ATR-s
...
Signed-off-by: Raul Metsma <raul@metsma.ee>
2017-11-17 10:05:25 +01:00
Frank Morgner
0211f638c3
only set MACOSX_DEPLOYMENT_TARGET
...
which is equivalent to use -mmacosx-version-min
2017-11-17 10:04:46 +01:00
Frank Morgner
9a2a62e641
fixed codesigning of opensc tools
2017-11-17 10:04:46 +01:00
Frank Morgner
c35eb1c9bc
macOS: Disable notifications by default
...
fixes https://github.com/OpenSC/OpenSC/issues/1174
2017-11-17 10:04:46 +01:00
Frank Morgner
027205cc4d
use MACOSX_DEPLOYMENT_TARGET
2017-11-17 10:04:46 +01:00
Frank Morgner
718d4852da
use pluginkit to register OpenSCToken
2017-11-17 10:04:46 +01:00
Frank Morgner
20ea45b8f1
allow static linking of OpenSCToken
2017-11-17 10:04:46 +01:00
Frank Morgner
c9984ca762
MacOS: optionally use CTK in package builder
2017-11-17 10:04:46 +01:00
Frank Morgner
c70ed34669
CTK: Added support for PIN pad
2017-11-17 10:04:46 +01:00
Frank Morgner
ad6515ba55
CTX: detect card resets
2017-11-17 10:04:46 +01:00
Frank Morgner
b4072af26e
export sc_card_find_ec_alg
2017-11-17 10:04:46 +01:00
Frank Morgner
2494765cdc
CTK: fixed initializing ATR and UID
2017-11-17 10:04:46 +01:00
Frank Morgner
baa709ff74
print ASN.1 time and ASCII tranlation
2017-11-17 10:03:54 +01:00
Frank Morgner
8de544653c
dump data with sc_debug_hex and sc_log_hex
2017-11-17 10:03:54 +01:00
Frank Morgner
9468ce7f89
beautify printed ASN.1 output
...
- fixed printing tags on multiple bytes
- align indenting with raw tags
- use OpenSSL's human readable OID database
- only print the canonical names for universal tags
2017-11-17 10:03:54 +01:00
Frank Morgner
4317df10e6
created opensc-asn1
...
fixes installation of egk-tool.exe on win32
2017-11-17 10:03:54 +01:00
Raul Metsma
2846295e1f
EstEID ECDH token support ( #1185 )
2017-11-10 08:58:31 +01:00
Jakub Jelen
77f2640ea7
Avoid potential memory leak
2017-11-09 12:45:35 +01:00
Jakub Jelen
07267df313
Add the ACA path to the PIN structure if we have one
2017-11-09 12:45:35 +01:00
Jakub Jelen
fd6882f686
Enable CAC ALT token card operations
2017-11-09 12:45:35 +01:00
Frank Morgner
eacb53fc60
added boilerplate for disabling old card driver
...
currently disabled:
- miocos
- jcop
2017-11-09 12:43:06 +01:00
Frank Morgner
4d5b73d869
fixed accessing garbage value
2017-11-09 12:42:29 +01:00
Frank Morgner
260716f968
fixed memory leak
2017-11-09 12:42:29 +01:00
Frank Morgner
1d03000222
fixed dead assignment
2017-11-09 12:42:29 +01:00
Frank Morgner
9c025280a6
avoid integer underflow
2017-11-09 12:42:29 +01:00
Frank Morgner
a332f72b38
honor return values of read and sscanf
2017-11-09 12:42:29 +01:00
Frank Morgner
17132b04c7
fixed possible bad memory access
2017-11-09 12:42:29 +01:00
Frank Morgner
3ca6c4b04a
fixed possible NULL dereference
2017-11-09 12:42:29 +01:00
Frank Morgner
10101984da
fixed dereferencing type-punned pointer
2017-11-09 12:42:29 +01:00
Frank Morgner
7d0f05b247
removed unused compile options
2017-11-09 12:42:29 +01:00