diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_server.c')
-rw-r--r-- | src/lib/libssl/src/apps/s_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c index 3dd22e6b7a..1082ee51ee 100644 --- a/src/lib/libssl/src/apps/s_server.c +++ b/src/lib/libssl/src/apps/s_server.c | |||
@@ -1805,7 +1805,7 @@ sv_body(char *hostname, int s, unsigned char *context) | |||
1805 | if (s_crlf) { | 1805 | if (s_crlf) { |
1806 | int j, lf_num; | 1806 | int j, lf_num; |
1807 | 1807 | ||
1808 | i = raw_read_stdin(buf, bufsize / 2); | 1808 | i = read(fileno(stdin), buf, bufsize / 2); |
1809 | lf_num = 0; | 1809 | lf_num = 0; |
1810 | /* both loops are skipped when i <= 0 */ | 1810 | /* both loops are skipped when i <= 0 */ |
1811 | for (j = 0; j < i; j++) | 1811 | for (j = 0; j < i; j++) |
@@ -1821,7 +1821,7 @@ sv_body(char *hostname, int s, unsigned char *context) | |||
1821 | } | 1821 | } |
1822 | assert(lf_num == 0); | 1822 | assert(lf_num == 0); |
1823 | } else | 1823 | } else |
1824 | i = raw_read_stdin(buf, bufsize); | 1824 | i = read(fileno(stdin), buf, bufsize); |
1825 | if (!s_quiet) { | 1825 | if (!s_quiet) { |
1826 | if ((i <= 0) || (buf[0] == 'Q')) { | 1826 | if ((i <= 0) || (buf[0] == 'Q')) { |
1827 | BIO_printf(bio_s_out, "DONE\n"); | 1827 | BIO_printf(bio_s_out, "DONE\n"); |
@@ -1954,7 +1954,7 @@ sv_body(char *hostname, int s, unsigned char *context) | |||
1954 | #endif | 1954 | #endif |
1955 | switch (SSL_get_error(con, i)) { | 1955 | switch (SSL_get_error(con, i)) { |
1956 | case SSL_ERROR_NONE: | 1956 | case SSL_ERROR_NONE: |
1957 | raw_write_stdout(buf, | 1957 | write(fileno(stdout), buf, |
1958 | (unsigned int) i); | 1958 | (unsigned int) i); |
1959 | if (SSL_pending(con)) | 1959 | if (SSL_pending(con)) |
1960 | goto again; | 1960 | goto again; |