diff options
author | Anton Fadeev <anton.fadeev@red-soft.ru> | 2021-11-25 20:31:03 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2021-11-25 21:34:59 +0300 |
commit | 5a399b81e811c28c016fbc0315a9c78593eda1f9 (patch) | |
tree | 13e113b2b63c8b099c99fd2c505ffcd984c32a95 | |
parent | 8efda3214b5592a5267db96cb0d0da2a2c747a69 (diff) | |
download | gost-engine-5a399b81e811c28c016fbc0315a9c78593eda1f9.zip gost-engine-5a399b81e811c28c016fbc0315a9c78593eda1f9.tar.gz gost-engine-5a399b81e811c28c016fbc0315a9c78593eda1f9.tar.bz2 |
Use frpintf(stderr, ...) instead of printf(...)
When we use git cli in OS Linux, with enabled gost engine
git utility we got fatal erro
-rw-r--r-- | gost_eng.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 */ |