Lidia Fernández wrote: > Hello all! > > I'm working with xsupplicant (Open1x) and i have a problem with SSL. > By default, xsupplicant waits a message with 1.000 bytes, but i have > modificated this because i need a messages with 10.000 bytes or more. > > Before: > rc=SSL_read(mytls_vars->ssl, out_data,1000); > > and now, i want to do a loop like... > > while (rc > 0) > rc=SSL_read(mytls_vars->ssl, out_data,1000); > > but this gives a error WANT_TO_READ or WANT_TO_WRITE, i don't know why. >
SSL_ERROR_WANT_READ means that more socket data was needed by the SSL protocol. This is not a fatal error, just means that you have to redo the SSL_read() when data becomes available. IIRC, there was long thread on this list, not long ago, about using SSL_read/write for partial read/write etc. > Do You can't do multiples read with ssl?? > Yes, you definitely can. But handle cases like the above correctly. -jb -- Tact is the art of making a point without making an enemy. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
