Hi, I have an application which exhibits both blocking and non-blocking behavior.
I create an SSL structure using SSL_new and a context. I call SSL_set_fd with a file descriptor for a blocking socket and the SSL pointer. Documentation tells me that the SSL pointer should inherit the blocking property from the socket passed to SSL_set_fd. However, when I call SSL_shutdown with the SSL handle, the return code I get is not an error or a shutdown completed but a shutdown in progress (return code= 0) . Documentation tells me that the shutdown will not return until the shutdown is completed (return code= 1) or an error condition is detected (return code= -1) if the SSL handle is blocking. So now I am confused. How can I test the SSL handle to find out if it is blocking or not? regards, Solveig