Guys, I am writing a piece of software to negotiate the client side of a TLS connection over UDP. I have initialised openssl by using ctx = SSL_CTX_new( TLSv1_client_method() ); SSL_CTX_use_certificate_chain_file -- to load a ca certificate SSL_CTX_check_private_key -- to load the clients private key.
I have two BIOs of type BIO_s_mem called toClient and fromClient. SSL_set_bio(connection->ssl, connection->toClient, connection->fromClient) To get the client_hello message I call SSL_connect which returns a negative result. SSL_get_error then informs me that the error is SSL_ERROR_WANT_READ. Then BIO_read is used to read bytes from the fromClient BIO. Those bytes are then sent to the server. In response to the server sends me the server_hello data which I am writing into the toClient BIO. My problem is that I don't know how to get to the next phase of the handshake. How do I tell openssl that there is data on available for it to read. Or does the toClient BIO do that for me. thanks for any help Martin. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
