From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 26 Feb 2012 12:40:27 +0400 From: Sergey Vlasov To: community@lists.altlinux.org Message-ID: <20120226084027.GA6389@atlas.home> Mail-Followup-To: community@lists.altlinux.org References: <20120221200406.GA6385@atlas.home> <20120221201704.GB6385@atlas.home> <201202221301.45326.cas@altlinux.ru> <4F44B31D.3090909@gmail.com> <4F4811AD.4080104@tangramltd.com> <4F491C75.5080903@tangramltd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: Subject: Re: [Comm] =?koi8-r?b?W3A2XSDUxdPUydLP18HOycUgzs/X2cggZnJlZXJkcCDJ?= =?koi8-r?b?IHJlbW1pbmE=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2012 08:40:35 -0000 Archived-At: List-Archive: List-Post: --jRHKVT23PllUwdXP Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 25, 2012 at 10:36:49PM +0100, vx8400 wrote: > =F3=CF=C2=D2=C1=CE=CE=D9=CA =C9=DA trunk =D7=D9=D7=C1=CC=C9=D7=C1=C5=D4= =D3=D1 =D3 =D4=CF=CA =D6=C5 =CF=DB=C9=C2=CB=CF=CA. > =F0=D2=C9=DE=C9=CE=C1 =D7 =D4=CF=CD, =DE=D4=CF =D0=D2=C9 =DA=C1=D7=C5=D2= =DB=C5=CE=C9=C9 =D3=C5=D3=D3=C9=C9 =D3=C5=D2=D7=C5=D2 =CE=C5=DB=D4=C1=D4=CE= =CF =D2=C1=DA=D2=D9=D7=C1=C5=D4 > =D3=CF=C5=C4=C9=CE=C5=CE=C9=C5. > xfreerdp =D7=C9=C4=C9=D4, =DE=D4=CF =D3=CF=CB=C5=D4 =D0=CF=D4=C5=D2=D1=CE= (Failed to check FreeRDP file descriptor), > =CE=CF =D7=D3=C5 =D2=C1=D7=CE=CF =D7=D9=DA=D9=D7=C1=C5=D4 freerdp_disconn= ect() -> transport_disconnect() -> > -> tls_disconnect() -> SSL_shutdown(tls->ssl) -> ... > ... -> write(=C4=CF=C8=CC=D9=CA =D3=CF=CB=C5=D4 ...) -> SIGPIPE >=20 > E=D3=CC=C9 =CE=C5 =D7=D9=DA=D9=D7=C1=D4=D8 SSL_shutdown() =D0=D2=C9 =CF= =D4=D7=C1=CC=C9=D7=DB=C5=CD=D3=D1 =D3=CF=C5=C4=C9=CE=C5=CE=C9=C9, =D4=CF > xfreerdp =DA=C1=D7=C5=D2=DB=C1=C5=D4=D3=D1 =CE=CF=D2=CD=C1=CC=D8=CE=CF. = =F0=C1=D4=DE =C4=CC=D1 =D0=D2=CF=D7=C5=D2=CB=C9 =D7 =D0=D2=C9=C3=C5=D0=C5. =EB=D3=D4=C1=D4=C9, =D0=D2=C9 =D0=D2=CF=C2=D2=CF=D3=C5 =D0=CF=D2=D4=C1 3389= =DE=C5=D2=C5=DA ssh =DC=D4=C1 =CF=DB=C9=C2=CB=C1 =D5 =CD=C5=CE=D1 =CE=C5 =D7=CF=D3=D0=D2=CF=C9=DA=D7=CF=C4=C9=D4=D3=D1 (=D3 =D3=C5=D2=D7=C5=D2=CF=CD= 2008 R2, =C7=C4=C5 TLS, =D0=CF=C8=CF=D6=C5, =D0=CF =D5=CD=CF=CC=DE=C1=CE= =C9=C0 =D7=D3=C5=C7=C4=C1 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4=D3=D1 =C9 =D7=D9=C4=C1=A3= =D4 =C8=CF=D4=D1 =C2=D9 =D3=C1=CD=CF=D0=CF=C4=D0=C9=D3=C1=CE=CE=D9=CA =D3= =C5=D2=D4=C9=C6=C9=CB=C1=D4). > =EF=DB=C9=C2=CB=C1 =D7 remmina =D3 =D2=C1=DA=D2=D9=D7=CF=CD =D3=CF=C5=C4= =C9=CE=C5=CE=C9=D1, =D7=CF=DA=CD=CF=D6=CE=CF, =CE=C5 =D3=D7=D1=DA=C1=CE=C1: =E4=C1, =D4=C1=CD =C4=C5=CC=CF =D1=D7=CE=CF =CE=C5 =D7 TLS (=CB=D3=D4=C1=D4= =C9, =D7 =CF=D0=C3=C9=D1=C8 =D3=CF=C5=C4=C9=CE=C5=CE=C9=D1 =D4=C1=CD =D4=CF= =D6=C5 =CD=CF=D6=CE=CF =CF=D4=CB=CC=C0=DE=C9=D4=D8 TLS) - remmina =D7=C1=CC=C9=D4=D3=D1 =C4=C1=D6= =C5 =D7 =D4=CF=CD =D3=CC=D5=DE=C1=C5, =C5=D3=CC=C9 =D0=CF=C4=C4=C5=D2=D6=CB= =C1 TLS =CE=C1 =D3=C5=D2=D7=C5=D2=CE=CF=CA =D3=D4=CF=D2=CF=CE=C5 =CF=D4=CB=CC=C0=DE= =C5=CE=C1. > --- a/libfreerdp-core/tls.c 2012-02-10 03:01:42.000000000 +0100 > +++ b/libfreerdp-core/tls.c 2012-02-25 21:32:00.381001657 +0100 > @@ -22,6 +22,9 @@ > =20 > #include "tls.h" > =20 > +#include > +#include > + > boolean tls_connect(rdpTls* tls) > { > int connection_status; > @@ -120,9 +123,18 @@ > return true; > } > =20 > +char _buf_[8]; > + > boolean tls_disconnect(rdpTls* tls) > { > - SSL_shutdown(tls->ssl); > + int n =3D read(tls->ssl->wbio->num,_buf_,0); > + if (errno) { =F7=CF=CF=C2=DD=C5 =D7=D9=DA=CF=D7 read() =CE=D5=CC=C5=D7=CF=CA =C4=CC=C9= =CE=D9 =CE=C5 =CF=C2=D1=DA=C1=CE =D0=D2=CF=D7=C5=D2=D1=D4=D8 =DE=D4=CF-=CC= =C9=C2=CF =CE=C1 =CF=DB=C9=C2=CB=C9, =C1 =C9=CD=C5=C5=D4 =D0=D2=C1=D7=CF =D0=D2=CF=D3=D4=CF = =D7=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C SIGPIPE =C9 =CF=C2= =D2=C1=C2=C1=D4=D9=D7=C1=D4=D8 =CF=DB=C9=C2=CB=D5 EPIPE =CF=D4 write(); =D3=D4=D2=C1=CE=CE=CF, =D0=CF=DE=C5=CD=D5 xfreerdp =DC=D4=CF=C7=CF =CE=C5 = =C4=C5=CC=C1=C5=D4. --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9J7/sACgkQW82GfkQfsqJC2ACfbjQXd7hcKaZvdOV64qscA4hK 7wAAoIxrYaqYXR+HcB9Mdn588sIy1t2w =PtM6 -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--