Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open SSL API's Support For IPv6.

61 views
Skip to first unread message

Akanksha Shukla

unread,
Sep 21, 2011, 9:17:29 AM9/21/11
to

Hi,

Currently we are using OpenSSL 0.9.8 version. I have question about few of
the API's support for IPV6.

1) BIO_new_connect()
2) BIO_set_nbio()
3) BIO_do_connect()

Queries :
1) Do the above mentioned API's support IPv6?
2) If yes, then is there any specific syntax for mentioning the IPv6 address
and port (e.g. [IPv6 Address]:Port or IPv6 Address:Port)?
3) If not, then are there any alternate API's which support IPv6
functionality and we can use them for both IPv4 as well as IPv6 (rather than
using these API)?

Waiting for inputs. Any help would be great.

Thanks
Akanksha Shukla.
--
View this message in context: http://old.nabble.com/Open-SSL-API%27s-Support-For-IPv6.-tp32503747p32503747.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Wim Lewis

unread,
Sep 21, 2011, 3:55:19 PM9/21/11
to

On 21 Sep 2011, at 6:17 AM, Akanksha Shukla wrote:
> Currently we are using OpenSSL 0.9.8 version. I have question about few of
> the API's support for IPV6.
>
> 1) BIO_new_connect()
[...]
>
> Queries :
> 1) Do the above mentioned API's support IPv6?

I don't think so. BIO_new_connect() (and BIO_get_host_ip() which it calls) only deal in IPv4 addresses.

As far as I know, though, you should be able to make an IPv6 socket connection yourself, pass it to BIO_new_socket(), and have it work. It's just the hostname/address lookup that is address-family specific. (Oddly, the server side of things (accept() etc.) seems to have been extended to support IPv6 already.)

Akanksha Shukla

unread,
Sep 22, 2011, 4:45:10 AM9/22/11
to
Hi Wim,

Thanks a lot for your reply. But I am still left with few queries:
1) From your reply, what I understood is that Bio_new_connect() doesn't
support IPv6. But what about other two API's BIO_set_nbio() and
BIO_do_connect() ??. Do these API's support IPv6?
2) Are there any OpenSSL API which can be used to work on both IPv4 as well
as IPv6 so rather than using the legacy one which supports only IPv4.
3) Moreover my application is acting like a client server which will send
request. So, I need such API's which has support over IPv6.

Thanks
Akanksha Shukla.

Nilotpal De

unread,
Sep 22, 2011, 5:28:53 AM9/22/11
to
Hi,
         You can try this once.
  Use socket library connect() to get the connected socket. Then use BIO_new_socket() and pass the connected socket descriptor.
  Then, on the socket BIO you can try BIO_set_nbio() and BIO_do_connect().

With regards,
Nilotpal

--
With regards,
Nilotpal

0 new messages