On Mon, Jul 21, 2003, Jue (Jacky) Shu wrote:

> Thank you, Chris.
> Yes, that's what I want to do. But I have to use SSL_accept instead of accept,
> and peer's ip address is dynamic. Can I get peer's ip address from SSL 
> connection?

You can get the underlying socket fd from the relevant socket BIOs using the
appropriate calls, see BIO_s_socket() docs for more info.

Which side (client, server) do you want the FQDN for BTW?

One thing to be careful of is that DNS spoofing can't be used to fool
any checks you make.

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to