I didn't do that before, but have tried it now. The output is the same. Here is the full diff: https://rurz.us/p/JKL
On 09/22/2015 06:53 PM, Holger Weiß wrote: > * Regna <[email protected]> [2015-09-03 17:34]: >> I'm trying to add IPv6 support into nsca-ng client by using >> BIO_new_socket instead of BIO_new_connect and creating the socket by hand. >> Looks like I'm in need for some help with libev. >> Here is the main part of the current code: https://rurz.us/p/b6J >> >> @@ -259,14 +262,51 @@ tls_connect(tls_client_state *ctx, >> >> tls_on_timeout(tls, handle_timeout); >> >> - if ((tls->bio = BIO_new_connect((char *)server)) == NULL) >> - log_tls_message(die, "Cannot create BIO object"); > > Note that BIO_new_connect() just creates a connect BIO (and sets the > host name/address), it doesn't actually initiate a connection. This is > done later, by SSL_connect(). Now you add a connect(2) call, so you > should probably replace SSL_connect() with SSL_do_handshake() if you > didn't do so yet. > > Feel free to send a full diff if it still won't work, I'll have a go at > reproducing the issue then. > > Holger >
