Ok, Thanks a lot, Stephen


----- Original Message ----- 
From: "Dr. Stephen Henson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 28, 2003 1:01 PM
Subject: Re: Get IP from the peer


> On Fri, Nov 28, 2003, Fernando Moya wrote:
>
> > Hi,
> >
> > I have implemented a client/server SSL connection in my application
using a
> > BIO stack, I mean, first I created a BIO socket and after that I push on
it
> > a BIO SSL.
> >
> > Connection between client and server is ok and works correctly, but I
can
> > not get the client IP from server side.
> >
> > I tried with BIO_get_conn_ip in this form (at a glance):
> >
> >
> > BIO_do_accept(SSL_BIO_accept_server)
> >
> > SSL_BIO_connected_client=BIO_pop(SSL_BIO_accept_server);
> >
> > ipString=BIO_get_conn_ip(SSL_BIO_connected_client);
> >
> >
> > ,but "BIO_get_conn_ip" returns always NULL.
> >
> > I have been looking for others functions/macros like "BIO_get_conn_ip"
but I
> > did not find anything.
> >
> >
> > Does anyone know a function to obtain this?
> >
> >
>
> BIO_get_conn_ip() doesn't do that.
>
> The only real way is to get the socket fd from the BIO using BIO_get_fd()
then
> make appropriate OS calls on the fd to get the IP address.
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
> OpenSSL project core developer and freelance consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to