ssl fix from Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@144 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2007-02-23 15:54:37 +00:00
parent bbda7f9734
commit 8d4f353e2e

View file

@ -222,7 +222,7 @@ int stream_get_incoming_fd(PTSTREAM *pts)
return pts->incoming_fd;
else
#ifdef USE_SSL
return SSL_get_fd(pts->ssl);
return SSL_get_rfd(pts->ssl);
#else
return pts->incoming_fd;
#endif
@ -240,7 +240,7 @@ int stream_get_outgoing_fd(PTSTREAM *pts)
return pts->outgoing_fd;
else
#ifdef USE_SSL
return SSL_get_fd(pts->ssl);
return SSL_get_wfd(pts->ssl);
#else
return pts->outgoing_fd;
#endif