From 5a399b81e811c28c016fbc0315a9c78593eda1f9 Mon Sep 17 00:00:00 2001 From: Anton Fadeev Date: Thu, 25 Nov 2021 20:31:03 +0300 Subject: [PATCH] Use frpintf(stderr, ...) instead of printf(...) When we use git cli in OS Linux, with enabled gost engine git utility we got fatal erro --- gost_eng.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 */ -- 2.39.2