diff options
author | Hans Nilsson <[email protected]> | 2017-11-22 11:55:04 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-11-22 11:55:04 +0100 |
commit | a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7 (patch) | |
tree | abefeeb67dd14084fa0c2d0fc3a8442668f51192 /lib/crypto/c_src/otp_test_engine.c | |
parent | 43c5b9621e4c7054378e9ff96907cca4fd92ecc7 (diff) | |
parent | 6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2 (diff) | |
download | otp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.tar.gz otp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.tar.bz2 otp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.zip |
Merge branch 'hans/crypto/cuddle_tests' into maint
Diffstat (limited to 'lib/crypto/c_src/otp_test_engine.c')
-rw-r--r-- | lib/crypto/c_src/otp_test_engine.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/crypto/c_src/otp_test_engine.c b/lib/crypto/c_src/otp_test_engine.c index a66bee2ddf..5c6122c06a 100644 --- a/lib/crypto/c_src/otp_test_engine.c +++ b/lib/crypto/c_src/otp_test_engine.c @@ -218,9 +218,9 @@ EVP_PKEY* test_key_load(ENGINE *er, const char *id, UI_METHOD *ui_method, void * fclose(f); if (!pkey) { - fprintf(stderr, "%s:%d Key read from file failed. ", __FILE__,__LINE__); + fprintf(stderr, "%s:%d Key read from file %s failed.\r\n", __FILE__,__LINE__,id); if (callback_data) - fprintf(stderr, "Pwd = \"%s\". ", (char *)callback_data); + fprintf(stderr, "Pwd = \"%s\".\r\n", (char *)callback_data); fprintf(stderr, "Contents of file \"%s\":\r\n",id); f = fopen(id, "r"); { /* Print the contents of the key file */ @@ -228,12 +228,14 @@ EVP_PKEY* test_key_load(ENGINE *er, const char *id, UI_METHOD *ui_method, void * while (!feof(f)) { switch (c=fgetc(f)) { case '\n': - case '\r': putc('\r',stdout); putc('\n',stdout); break; - default: putc(c, stdout); + case '\r': putc('\r',stderr); putc('\n',stderr); break; + default: putc(c, stderr); } } } + fprintf(stderr, "File contents printed.\r\n"); fclose(f); + return NULL; } return pkey; |