Skip to content

Commit

Permalink
Use frpintf(stderr, ...) instead of printf(...)
Browse files Browse the repository at this point in the history
When we use git cli in OS Linux, with enabled gost engine
git utility we got fatal erro
  • Loading branch information
antonios-f authored and beldmit committed Nov 25, 2021
1 parent 8efda32 commit 5a399b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gost_eng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5a399b8

Please sign in to comment.