I have tried to debug android application to print out SSL_write and SSL_read data with that project and print out the file descriptor (to get src&dst ip ) with SSL_get_fd
But for some SSL*
the function SSL_get_fd
always return -1 instead of return correct fd , and for another SSL*
the function SSL_get_fd
return the correct fd .
When I tried to use function SSL_is_init_finished
just for check on those SSL*
that return fd = -1 , I got 1(true)
I saw a same question on : What does it mean, when SSL_get_fd returns -1? but there is no answer there.
How can I get the correct fd from SSL *
?