hello,
In my code I have a normal socket and I am using SSL_set_fd to turn it
into an SSL socket. After I have make it an SSL socket I no longer need
or want to the original socket. I have tried closing it after the
SSL_set_fd but this make the SSL socket no good.
What I want is to have only one socket reference to manage and close
when my process is done. I don't want to keep track of both the normal
socket and the SSL socket for closing in the end. I have tried closing
the SSL socket after it has been set but this does not close the
original socket.
Currently working code flow:
newSocket = accept();
newSSLSocket = NewSSLSocket();
SSL_set_fd( newSSLSocket, newSocket );
....
..... do stuff with SSL socket
SSL_shutdown( newSSLScoket)
close( newSocket );
I would like a flow like this if possible ( this flow does not work I am
not allowed to close the original socket):
newSocket = accept();
newSSLSocket = NewSSLSocket();
SSL_set_fd( newSSLSocket, newSocket );
close( newSocket );
....
..... do stuff with SSL socket
SSL_shutdown( newSSLScoket);
I would welcome any suggestions.
Thanks,
Perry
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]