delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/09/02:48:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-VirusChecked: Checked
X-Env-Sender: jan DOT just DOT keijser AT logicacmg DOT com
X-Msg-Ref: server-6.tower-36.messagelabs.com!1115621274!1828551!1
X-StarScan-Version: 5.4.15; banners=logicacmg.com,-,-
Message-ID: <D1D50F9C5151D2119FF000104BB3F9B708E1B75B@NL-ROT-MAIL02>
From: Jan Just Keijser <jan DOT just DOT keijser AT logicacmg DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: echo "$(echo '\r')" oddity
Date: Mon, 9 May 2005 08:47:18 +0200
MIME-Version: 1.0
X-OriginalArrivalTime: 09 May 2005 06:42:28.0429 (UTC) FILETIME=[449857D0:01C55462]
X-IsSubscribed: yes

Hi Brian,

in interactive mode the command seems to work fine. What happens if you
build socat and then run the test script (./test.sh) ? Which tests does it
fail on?

What DOES fail for me is

$ socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet -cert cacert.pem
-key privkey.pem' pipe &
$ echo hello | socat -d -d -t 0.1 -
openssl:localhost:12002,cafile=cacert.pem,verify=1

so piping text into the "client" socat is failing on me. 

regards,

JJK

> I built socat and tried the very same commands you did, and 
> it seems to work fine.  I normally run a CVS build of the 
> Cygwin DLL but I switched to 1.5.16 and it works fine with 
> that version as well.
> 
> $ socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet 
> -cert cacert.pem -key privkey.pem' pipe & [1] 3276
> 
> $ socat -d -d -t 0.1 - 
> openssl:localhost:12002,cafile=cacert.pem,verify=1
> 2005/05/04 02:19:30 socat[2460] N reading from and writing to stdio
> 2005/05/04 02:19:30 socat[2460] N opening connection to AF=2 
> 127.0.0.1:12002
> 2005/05/04 02:19:30 socat[2460] N successfully connected from 
> local address AF=2
> 127.0.0.1:4335
> 2005/05/04 02:19:30 socat[2460] N SSL connection using 
> DHE-RSA-AES256-SHA
> 2005/05/04 02:19:30 socat[2460] N starting data transfer loop 
> with FDs [0,1] and [3,3] hello hello goodbye goodbye
> 2005/05/04 02:19:34 socat[2460] N socket 1 (fd 0) is at EOF
> 2005/05/04 02:19:34 socat[2460] N socket 2 (fd 3) is at EOF
> 2005/05/04 02:19:34 socat[2460] W shutdown(3, 2): Bad file descriptor
> 2005/05/04 02:19:34 socat[2460] N exiting with status 0
> 
> The hello and goodbye I each typed once, the second one was 
> echoed back to me.  I then hit ^D.  If there was any network 
> problems I would not have expected the ssl handshake to 
> succeed (I used a dummy cert on both sides as you can tell.)
> 

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019