[openssl-users] Async engine and BIOs

2016-09-06 Thread Nicolas Brunie
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.

[openssl-users] Sequential / parallel OpenSSL sessions with Async

2016-08-31 Thread Nicolas Brunie
), 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

[openssl-users] Non-blocking SSL_read/SSL_write: difference between renegociation and data famine

2016-09-12 Thread Nicolas Brunie
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