SSL_get_fd

Chethan Kumar Chethan.Kumar at toshiba-tsip.com
Thu Jul 18 14:01:06 UTC 2019


Any help would be much appreciated.
What I want to know is whether SSL_get_fd() can be used to get fd which in turn can be used with getpeername() to know the other host communicating.

Thanks in advance,
Chethan Kumar

From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf Of Chethan Kumar
Sent: Wednesday, July 17, 2019 9:17 PM
To: openssl-users at openssl.org
Cc: chethu.kumar88 at gmail.com
Subject: SSL_get_fd

Hi all,

Need an help.
I am trying to print IP address of destination host by doing getpeername() on fd got using SSL_get_fd() in both SSL_accept() and SSL_connect().
Doing SSL_get_fd() fails in SSL_accept() with return value as -1 but its working in SSL_connect().

Can you please help me out in knowing what is the issue.

Thanks in advance,

With Regards,
Chethan Kumar


The information contained in this e-mail message and in any attachments/annexure/appendices is confidential to the
recipient and may contain privileged information. If you are not the intended recipient, please notify the
sender and delete the message along with any attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail
are those of the individual sender except where the sender specifically states them to be the views of
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.
Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Toshiba Software India Pvt. Ltd, for any loss or damage arising in any way from its use.
The information contained in this e-mail message and in any
attachments/annexure/appendices is confidential to the 
recipient and may contain privileged information. 
If you are not the intended recipient, please notify the
sender and delete the message along with any 
attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the
message or any annexure. Any views expressed in this e-mail 
are those of the individual sender except where the sender 
specifically states them to be the views of 
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be
free of any virus or other defect that might affect any computer 
system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility 
is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or
damage arising in any way from its use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190718/7e1e84f6/attachment-0001.html>


More information about the openssl-users mailing list