Commit Graph

6821 Commits

Author SHA1 Message Date
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
Frank Morgner
08ca27197a treat warnings as errors 2017-11-09 12:42:29 +01:00
Frank Morgner
385a0392ce msvc: disable type truncation warnings 2017-11-09 12:42:29 +01:00
Frank Morgner
3693a96911 win32: don't link static libs into static libs 2017-11-09 12:42:29 +01:00
Frank Morgner
d4befcc2e5 fixed unused dependency 2017-11-09 12:42:29 +01:00
Frank Morgner
854123c75e fixed binary comparison 2017-11-09 12:42:29 +01:00
Frank Morgner
4251a362b5 fixed potential memory leak 2017-11-09 12:42:29 +01:00
Frank Morgner
1b880b5675 fixed uninitialized buffer 2017-11-09 12:42:29 +01:00
Frank Morgner
f4946df4e9 fixed dead assignments 2017-11-09 12:42:29 +01:00
Frank Morgner
45be3da23f win32: fixed OpenSC major/minor version 2017-11-09 12:42:29 +01:00
Frank Morgner
251a5f9fef reader-pcsc: use sc_apdu2bytes for PIN APDU 2017-11-09 12:42:29 +01:00
Frank Morgner
04a7075290 fixed compiler warnings 2017-11-09 12:42:29 +01:00
Raul Metsma
189368e49f Fix crash when certificate read failed (#1189)
Fixes https://github.com/OpenSC/OpenSC/issues/1176
2017-11-08 13:24:18 +01:00
Frank Morgner
221d8c72aa include branch in CI links 2017-10-30 21:14:52 +01:00
Frank Morgner
4dfa7aa40c cope with system's <strings.h>
fixes https://github.com/OpenSC/OpenSC/issues/1180
2017-10-30 20:57:05 +01:00
Raul Metsma
be35d3d026 EstEID ECDSA token support (#1158) 2017-10-27 19:51:33 +02:00
Frank Morgner
19d9ec7d5d msvc: don't warn about deprecated crt functions
See https://msdn.microsoft.com/de-de/library/ms235384.aspx
2017-10-27 19:48:22 +02:00
Frank Morgner
5bd4716ea0 added missing include 2017-10-27 19:48:22 +02:00
Frank Morgner
594e125f06 Added PKCS#15 emulator for DIN 66291 profile 2017-10-27 19:48:22 +02:00