From: Anton Fadeev Date: Thu, 25 Nov 2021 17:31:03 +0000 (+0300) Subject: Use frpintf(stderr, ...) instead of printf(...) X-Git-Tag: v3.0.1~40 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=5a399b81e811c28c016fbc0315a9c78593eda1f9;p=openssl-gost%2Fengine.git Use frpintf(stderr, ...) instead of printf(...) When we use git cli in OS Linux, with enabled gost engine git utility we got fatal erro --- diff --git a/gost_eng.c b/gost_eng.c index 006710c..003768c 100644 --- a/gost_eng.c +++ b/gost_eng.c @@ -333,27 +333,27 @@ int populate_gost_engine(ENGINE* e) { if (e == NULL) goto end; if (!ENGINE_set_id(e, engine_gost_id)) { - printf("ENGINE_set_id failed\n"); + fprintf(stderr, "ENGINE_set_id failed\n"); goto end; } if (!ENGINE_set_name(e, engine_gost_name)) { - printf("ENGINE_set_name failed\n"); + fprintf(stderr, "ENGINE_set_name failed\n"); goto end; } if (!ENGINE_set_digests(e, gost_digests)) { - printf("ENGINE_set_digests failed\n"); + fprintf(stderr, "ENGINE_set_digests failed\n"); goto end; } if (!ENGINE_set_ciphers(e, gost_ciphers)) { - printf("ENGINE_set_ciphers failed\n"); + fprintf(stderr, "ENGINE_set_ciphers failed\n"); goto end; } if (!ENGINE_set_pkey_meths(e, gost_pkey_meths)) { - printf("ENGINE_set_pkey_meths failed\n"); + fprintf(stderr, "ENGINE_set_pkey_meths failed\n"); goto end; } if (!ENGINE_set_pkey_asn1_meths(e, gost_pkey_asn1_meths)) { - printf("ENGINE_set_pkey_asn1_meths failed\n"); + fprintf(stderr, "ENGINE_set_pkey_asn1_meths failed\n"); goto end; } /* Control function and commands */