opensc/src/libopensc
Maciej S. Szmigiero da6815d542 Use built-in formatted output functions on mingw
Mingw currently links to msvcrt.dll as C runtime.
This library is documented by Microsoft as off-limits to applications and
its feature set vary between Windows versions.

Due to this, presence of particular printf() format string directives
depends on which Windows version the code is run.

This is, naturally, bad, so mingw developers introduced ability to replace
formatted output functions with built-in equivalents with defined feature
set by setting "__USE_MINGW_ANSI_STDIO" macro to 1.
There are, however, no built-in equivalents for "_s" suffixed functions.
Fortunately, they are used only a few times in minidriver so let's simply
replace them with equivalent code using standard functions.

This also allows skipping "MINGW_HAS_SECURE_API" macro definition so any
future uses will be caught by compiler.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2017-03-27 11:05:16 +02:00
..
Makefile.am Make minidriver buildable again on mingw 2017-03-27 10:57:21 +02:00
Makefile.mak card-npa: moved to internal card drivers 2017-03-20 21:28:48 +01:00
apdu.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
asn1.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
asn1.h asn1: tagnum size has not exceed 3 bytes 2016-03-10 10:13:27 +01:00
authentic.h libopensc: authentIC: use macros; use common CPLC data type 2011-05-13 12:57:18 +00:00
aux-data.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
aux-data.h Move include for internal.h from aux-date.h to aux-data.c (#888) 2016-10-16 20:09:00 +02:00
base64.c make casting explicit 2015-11-01 13:18:39 +01:00
card-acos5.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
card-akis.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
card-asepcos.c Fix Coverity remarks (#876) 2016-10-10 22:21:46 +02:00
card-atrust-acos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-authentic.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-belpic.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-cac.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-cardos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-coolkey.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-default.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
card-dnie.c Fix cases of log function format strings not being a string literal 2017-03-27 11:05:16 +02:00
card-entersafe.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-epass2003.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-flex.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-gemsafeV1.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-gids.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-gids.h First support for GIDS card 2016-02-19 00:12:16 +01:00
card-gpk.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-iasecc.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-incrypto34.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
card-isoApplet.c IsoApplet: fix dead code 2015-09-18 17:02:45 +02:00
card-itacns.c itacns_get_serialnr(): check sc_read_binary() returned data length (only). 2014-11-07 12:49:44 +01:00
card-jcop.c removed unused variable 2015-10-14 23:08:39 +02:00
card-jpki.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-masktech.c Merge pull request #483 from adminmt/master 2015-09-02 10:41:06 +02:00
card-mcrd.c Fix cases of log function format strings not being a string literal 2017-03-27 11:05:16 +02:00
card-miocos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-muscle.c coverify-scan: muscle: use return value 2016-03-10 11:23:39 +01:00
card-myeid.c myeid: added card capabilities check to ... 2017-01-01 13:58:07 +01:00
card-npa.c card-npa: moved to internal card drivers 2017-03-20 21:28:48 +01:00
card-npa.h card-npa: moved to internal card drivers 2017-03-20 21:28:48 +01:00
card-oberthur.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-openpgp.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-piv.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-rtecp.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-rutoken.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-sc-hsm.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-sc-hsm.h sc-hsm: Add status info support for SmartCard-HSM V2.0 2015-09-03 21:49:24 +02:00
card-setcos.c Add support for RSA with keylength 2048 2016-05-16 11:12:53 +02:00
card-starcos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-tcos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card-westcos.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
card.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
cardctl.h adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
cards.h card-npa: moved to internal card drivers 2017-03-20 21:28:48 +01:00
ccid-types.h Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
compression.c First support for GIDS card 2016-02-19 00:12:16 +01:00
compression.h First support for GIDS card 2016-02-19 00:12:16 +01:00
ctbcs.c coverity-scan: supplement to #710 2016-03-15 19:10:52 +01:00
ctbcs.h
ctx.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
cwa-dnie.c Fix cases of log function format strings not being a string literal 2017-03-27 11:05:16 +02:00
cwa-dnie.h Disable dnie if not defined ENABLE_SM (issue #927) 2017-01-08 17:13:13 +01:00
cwa14890.c Fix cases of log function format strings not being a string literal 2017-03-27 11:05:16 +02:00
cwa14890.h Use struct sm_cwa_session from sm.h in dnie (#955) 2017-02-04 22:32:35 +01:00
dir.c NULL parameter check moved to sc_file_free() 2017-01-10 12:46:44 +01:00
ef-atr.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
errors.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
errors.h Normalize SC_ERROR_* API and clean up ISO7816-4 errors. 2013-03-15 12:30:38 +02:00
esteid.h EstEID: add support for v 3.0 cards with 2048b keys 2010-11-29 14:22:01 +00:00
iasecc-sdo.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
iasecc-sdo.h iasecc: coverity scan warning OVERRUN-STATIC 2012-06-11 20:59:45 +02:00
iasecc-sm.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
iasecc.h removed unused reference to sm_iasecc_rsa_generate 2013-09-29 18:52:38 +02:00
internal-winscard.h License clarification (#988) 2017-03-14 22:47:13 +01:00
internal.h adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
iso7816.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
iso7816.h parse Extended Length Information in EF.ATR/INFO 2016-07-19 14:30:38 +02:00
itacns.h New card driver: Italian CNS/CIE (eID) 2010-08-16 00:56:27 +00:00
jpki.h login state preservation for JPKI card 2017-02-06 14:22:14 +01:00
libopensc.exports Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
log.c tools: fix segfault with verbose log into 'stderr' 2016-12-18 11:31:00 +01:00
log.h Use built-in formatted output functions on mingw 2017-03-27 11:05:16 +02:00
muscle-filesystem.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
muscle-filesystem.h
muscle.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
muscle.h use size_t for a length instead of int 2015-10-14 22:56:53 +02:00
opensc.h Use built-in formatted output functions on mingw 2017-03-27 11:05:16 +02:00
p15card-helper.c Use OpenSSL versions OpenSSL-0.9.7 to 1.1.0a for OpenSC 2016-10-08 06:15:06 -05:00
p15card-helper.h
pace.h Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
padding.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-actalis.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-algo.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-atrust-acos.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-cac.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-cache.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-cert.c adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
pkcs15-coolkey.c coolkey: Improve return values logging in init_ex() function 2016-11-22 21:21:06 +01:00
pkcs15-data.c add compatibility implementation for strnlen 2016-01-20 10:47:27 +01:00
pkcs15-dnie.c NULL parameter check moved to sc_file_free() 2017-01-10 12:46:44 +01:00
pkcs15-esinit.c pkcs15: 'aid' argument for emulator init 2016-04-08 10:48:58 +02:00
pkcs15-esteid.c Add the final NUL to the CN used for token label 2017-03-21 09:31:39 +01:00
pkcs15-gemsafeGPK.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-gemsafeV1.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-gids.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-iasecc.c pkcs15 iasecc: parse-df handler to set MD guid 2016-04-08 10:48:58 +02:00
pkcs15-infocamere.c NULL parameter check moved to sc_file_free() 2017-01-10 12:46:44 +01:00
pkcs15-itacns.c Use OpenSSL versions OpenSSL-0.9.7 to 1.1.0a for OpenSC 2016-10-08 06:15:06 -05:00
pkcs15-jpki.c md: integrate JPKI (#964) 2017-03-03 10:59:56 +01:00
pkcs15-oberthur.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-openpgp.c Set PIN-PUK association for cards that don't have it set 2017-03-27 10:57:21 +02:00
pkcs15-pin.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-piv.c Set PIN-PUK association for cards that don't have it set 2017-03-27 10:57:21 +02:00
pkcs15-postecert.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-prkey.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-pteid.c pteid: order objects by address (supersede #949) (#954) 2017-02-09 20:54:06 +01:00
pkcs15-pubkey.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-sc-hsm.c Set PIN-PUK association for cards that don't have it set 2017-03-27 10:57:21 +02:00
pkcs15-sec.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15-skey.c Merge pull request #253 from github-frankmorgner/remove-deadcode 2014-09-07 21:22:43 +02:00
pkcs15-starcert.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-syn.c adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
pkcs15-syn.h adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
pkcs15-tccardos.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-tcos.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-westcos.c Set PIN-PUK association for cards that don't have it set 2017-03-27 10:57:21 +02:00
pkcs15.c NULL parameter check moved to sc_file_free() 2017-01-10 12:46:44 +01:00
pkcs15.h libopensc: generic parse of certificate extensions 2016-08-28 16:41:01 +02:00
reader-ctapi.c Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
reader-openct.c Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
reader-pcsc.c Fix cases of log function format strings not being a string literal 2017-03-27 11:05:16 +02:00
reader-tr03119.c Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
reader-tr03119.h Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
sc-ossl-compat.h Add support for LibreSSL compatability as well as OpenSSL-1.1.0 2016-10-08 06:17:44 -05:00
sc.c adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
sec.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
simpletlv.c adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
simpletlv.h adding a CAC support into OpenSC (#841) 2017-02-27 11:05:12 +01:00
sm.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
sm.h added sc_sm_stop 2015-04-02 09:54:41 +02:00
types.h libopensc: fetch card's UID 2016-07-24 17:16:29 +02:00