On 7 Jan 2013, at 10:21 PM, shyamala wrote:
> Hi, I have some queries regarding BIO_* calls. Our application uses BIO_* 
> calls (BIO_do_connect, BIO_new_connect etc) to establish connection with 
> Onboard Administrator. This works fine with IPv4 IP address, but 
> BIO_do_connect fails when IPv6 address is used. Looks like BIO_* calls don't 
> support IPv6. Could you please confirm whether BIO_* calls support IPv6? If 
> not, is there any alternate solution for this? Regards, Shyamala 

The BIO_s_connect() BIO method (which is used by BIO_new_connect()) only 
supports IPv4. (See also this thread on the subject from a couple years ago: 
[1]).

You can make IPv6 connections (or, presumably, other stream socket protocols) 
by doing the underlying socket() and connect() calls yourself, then wrapping 
the connected fd in a BIO using BIO_socket_nbio(), BIO_new_socket(), 
BIO_set_conn_hostname().

[1] http://www.mail-archive.com/openssl-users@openssl.org/msg65674.html


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to