projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use bio_err not stderr in apps.
[openssl.git]
/
apps
/
speed.c
diff --git
a/apps/speed.c
b/apps/speed.c
index
45a060f
..
1a3027b
100644
(file)
--- a/
apps/speed.c
+++ b/
apps/speed.c
@@
-1649,7
+1649,7
@@
int speed_main(int argc, char **argv)
if (!
(EVP_CIPHER_flags(evp_cipher) &
EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK)) {
if (!
(EVP_CIPHER_flags(evp_cipher) &
EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK)) {
-
fprintf(std
err, "%s is not multi-block capable\n",
+
BIO_printf(bio_
err, "%s is not multi-block capable\n",
OBJ_nid2ln(evp_cipher->nid));
goto end;
}
OBJ_nid2ln(evp_cipher->nid));
goto end;
}
@@
-2290,11
+2290,11
@@
static int do_multi(int multi)
fds = malloc(sizeof(*fds) * multi);
for (n = 0; n < multi; ++n) {
if (pipe(fd) == -1) {
fds = malloc(sizeof(*fds) * multi);
for (n = 0; n < multi; ++n) {
if (pipe(fd) == -1) {
-
fprintf(std
err, "pipe failure\n");
+
BIO_printf(bio_
err, "pipe failure\n");
exit(1);
}
fflush(stdout);
exit(1);
}
fflush(stdout);
-
fflush(std
err);
+
(void)BIO_flush(bio_
err);
if (fork()) {
close(fd[1]);
fds[n] = fd[0];
if (fork()) {
close(fd[1]);
fds[n] = fd[0];
@@
-2302,7
+2302,7
@@
static int do_multi(int multi)
close(fd[0]);
close(1);
if (dup(fd[1]) == -1) {
close(fd[0]);
close(1);
if (dup(fd[1]) == -1) {
-
fprintf(std
err, "dup failed\n");
+
BIO_printf(bio_
err, "dup failed\n");
exit(1);
}
close(fd[1]);
exit(1);
}
close(fd[1]);
@@
-2326,7
+2326,7
@@
static int do_multi(int multi)
if (p)
*p = '\0';
if (buf[0] != '+') {
if (p)
*p = '\0';
if (buf[0] != '+') {
-
fprintf(std
err, "Don't understand line '%s' from child %d\n",
+
BIO_printf(bio_
err, "Don't understand line '%s' from child %d\n",
buf, n);
continue;
}
buf, n);
continue;
}
@@
-2428,7
+2428,7
@@
static int do_multi(int multi)
else if (strncmp(buf, "+H:", 3) == 0) {
;
} else
else if (strncmp(buf, "+H:", 3) == 0) {
;
} else
-
fprintf(std
err, "Unknown type '%s' from child %d\n", buf, n);
+
BIO_printf(bio_
err, "Unknown type '%s' from child %d\n", buf, n);
}
fclose(f);
}
fclose(f);