]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Use frpintf(stderr, ...) instead of printf(...)
authorAnton Fadeev <anton.fadeev@red-soft.ru>
Thu, 25 Nov 2021 17:31:03 +0000 (20:31 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Thu, 25 Nov 2021 18:34:59 +0000 (21:34 +0300)
When we use git cli in OS Linux, with enabled gost engine
git utility we got fatal erro

gost_eng.c

index 006710cfa850c34cc9a01f0d896442ca88c7801f..003768cfb727e49a6bd26330c5ed3ae876885f62 100644 (file)
@@ -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 */