Re: openssl s_time: check for SSL_write failure

2018-08-24 Thread Jeremie Courreges-Anglas
On Wed, Aug 22 2018, Scott Cheloha wrote: > Check for failure. > > Also reuse retval for the buffer length in lieu of strlen. > > ok? Glancing at SSL_write(3), shouldn't this code loop if we get an error and SSL_get_error(3) returns SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE? Or perhaps it

openssl s_time: check for SSL_write failure

2018-08-22 Thread Scott Cheloha
Check for failure. Also reuse retval for the buffer length in lieu of strlen. ok? Index: s_time.c === RCS file: /cvs/src/usr.bin/openssl/s_time.c,v retrieving revision 1.29 diff -u -p -r1.29 s_time.c --- s_time.c22 Aug 2018