Update of /cvsroot/dnsmail/dnsmail
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv22221/dnsmail
Modified Files:
SmtpClient.cs
Log Message:
Send SSL_shutdown, but don't receive.
Index: SmtpClient.cs
===================================================================
RCS file: /cvsroot/dnsmail/dnsmail/SmtpClient.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SmtpClient.cs 7 Aug 2006 15:30:32 -0000 1.5
--- SmtpClient.cs 7 Aug 2006 16:23:35 -0000 1.6
***************
*** 113,116 ****
--- 113,118 ----
if (sslSession != IntPtr.Zero)
{
+ try { UnsafeOpenSsl.SSL_shutdown(sslSession); }
+ catch { throw; }
try { UnsafeOpenSsl.SSL_free(sslSession); }
catch { throw; }
***************
*** 260,264 ****
const int SSL_OP_ALL = 0x00000FFF;
! UnsafeOpenSsl.SSL_set_quiet_shutdown(sslSession, 1);
UnsafeOpenSsl.SSL_ctrl(sslSession, SSL_CTRL_OPTIONS, SSL_OP_ALL, IntPtr.Zero);
UnsafeOpenSsl.SSL_set_fd(sslSession, Client.Handle);
--- 262,266 ----
const int SSL_OP_ALL = 0x00000FFF;
! //UnsafeOpenSsl.SSL_set_quiet_shutdown(sslSession, 1);
UnsafeOpenSsl.SSL_ctrl(sslSession, SSL_CTRL_OPTIONS, SSL_OP_ALL, IntPtr.Zero);
UnsafeOpenSsl.SSL_set_fd(sslSession, Client.Handle);
|