+2004-02-17 Carlos Guzmán Álvarez <carlosga@telefonica.net>
+
+ * Mono.Security.Protocol.Tls/SslClientStream.cs:
+
+ - Fix for send the close notify alert in the Close method
+ only if the Handshake is fully negotiated.
+
2004-02-16 Carlos Guzmán Álvarez <carlosga@telefonica.net>
* Mono.Security.Protocol.Tls/TlsCipherSuiteFactory.cs:
+2004-02-17 Carlos Guzmán Álvarez <carlosga@telefonica.net>
+
+ * Mono.Security.Protocol.Tls/SslClientStream.cs:
+
+ - Fix for send the close notify alert in the Close method
+ only if the Handshake is fully negotiated.
+
+
2004-02-16 Carlos Guzmán Álvarez <carlosga@telefonica.net>
* Mono.Security.Protocol.Tls/TlsCipherSuiteFactory.cs:
{
if (this.innerStream != null)
{
- // Write close notify
- TlsCloseNotifyAlert alert = new TlsCloseNotifyAlert(this.context);
- this.SendAlert(alert);
+ if (this.context.HandshakeFinished)
+ {
+ // Write close notify
+ TlsCloseNotifyAlert alert = new TlsCloseNotifyAlert(this.context);
+ this.SendAlert(alert);
+ }
if (this.ownsStream)
{
this.innerStream.Close();
}
}
- this.ownsStream = false;
- this.innerStream = null;
+ this.ownsStream = false;
+ this.innerStream = null;
if (this.ClientCertSelection != null)
{
this.ClientCertSelection -= this.clientCertSelectionDelegate;