Updates to s_server and s_client for the latest early_data API changes
[openssl.git] / apps / s_client.c
index c11a634ac91f55014c81b30e65008abdc1546cf8..fdfd90bf1e7f6234b9f4fe0985022761a49233e2 100644 (file)
@@ -2375,9 +2375,7 @@ int s_client_main(int argc, char **argv)
             if (!BIO_read_ex(edfile, cbuf, BUFSIZZ, &readbytes))
                 finish = 1;
 
-            while (finish ? !SSL_write_early_finish(con)
-                          : !SSL_write_early(con, cbuf, readbytes,
-                                             &writtenbytes)) {
+            while (!SSL_write_early(con, cbuf, readbytes, &writtenbytes)) {
                 switch (SSL_get_error(con, 0)) {
                 case SSL_ERROR_WANT_WRITE:
                 case SSL_ERROR_WANT_ASYNC: