I'm trying to implement an eap-tls server using openssl and I've found only few examples about using memory BIOs to perform a TLS handshake. Can you give me some pointer to documentation about this or to some examples?
The code that I'm using is very simple: <openssl initialization> <...> SSL_set_accept_state(ssl); <when a packet is received> BIO_write(in_BIO, packet data, datalen); BIO_read(out_BIO, data, datalen); <send packet with data> Can this approach work? Sometimes the read returns -1 (no data available), but it should give some data (e.g. the ServerHello). What I'm missing? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]