2014-09-08 14:44 GMT+02:00 Iñaki Baz Castillo <i...@aliax.net>:
> ----------------------------------
> int read = BIO_read(sslBioToNetwork, (void*)myBuffer, MY_BUFFER_SIZE);
>
> // Use the read data
> ----------------------------------
>
> with something like this:
>
> -----------------------------------
> long read;
> char** data = (char**)&myBuffer;
>
> read = BIO_get_mem_data(sslBioToNetwork, data);
>
> // Emtpy the BIO buffer data, HOW?
>
> // Use the read data
> -----------------------------------
>
>
> But I do not know how to empty the already read BIO buffer data.
> BIO_flush() does nothing.


Sorry, BIO_flush() works. The problem is that calling BIO_eof() after
BIO_flush() does not return 1 so I get a loop. Updated my code not to
check BIO_eof() after BIO_flush().

-- 
Iñaki Baz Castillo
<i...@aliax.net>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to