Hi Everyone,
I am trying to mix an application with a buffer BIO over a SSL BIO
which uses an asynchronous engine for offloading.
I had a quick look at the SSL BIO (ssl/bio_ssl.c) and it does not
seem to care about the error SSL_ERROR_WANT_ASYNC coming from a
SSL_write or a SSL_read.
), it that so ?
best regards,
Nicolas Brunie
P.S:
SSL* obj = ... /* accept and init */ int err = SSL_read(obj, buf0,
READ_SIZE);
if (err < 0 && SSL_get_error(obj, err) == SSL_ERROR_WANT_ASYNC) {...}/*
pending buf0 crypto but go on */
/* the following is illegal if I have not called back S
processed ?
2. Using BIO_f_buffer, it seems there is a way to request OpenSSL to
buffer write data up until max Record size (setting buffer size from 4
to 16KB), is there a "OpenSSL way" to ensure the BIO_f_buffer will be
flushed periodically or must it be implemented externally ?
b