Re: Question about SSL_ERROR_WANT_WRITE

2020-12-12 Thread Kyle Hamilton
If you get SSL_ERROR_WANT_WRITE, call the same function with the same parameters and same buffer content immediately. (Same with SSL_ERROR_WANT_READ.) If you need to, stash those parameters in variables for ease of reference. But don't do anything else on the SSL layer until you get a different re

Re: Question about SSL_ERROR_WANT_WRITE

2020-12-12 Thread Kurt Roeckx
On Thu, Dec 10, 2020 at 05:14:00PM +0200, Cosmin Apreutesei wrote: > Hello, > > I have a question regarding SSL_write() and returning SSL_ERROR_WANT_WRITE > from the write callback. > > _After_ SSL_write() returns with SSL_ERROR_WANT_WRITE (because my write > callback returned SSL_ERROR_WANT_WRI

Difference between FIPS vs no FIPS.

2020-12-12 Thread guruprasad raorane
Hello, I have (may be stupid) a query as below. Is there any difference in OpenSSL API output in FIPS vs no-FIPS? Or more precisely if consumer application has no conditional code paths for FIPS /no FIPS. No change in application in FIPS mode vs No Fips except calling FIPS_mode_set with 0 o