From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p72DYxqa013584 for ; Tue, 2 Aug 2011 15:34:59 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuEBACH8N05RZ90vkWdsb2JhbABCp2IUAQEBAQkLCwcUAyKBRwgCHhJMBWgjDQEOAQQeBYdeoQOgLYZCBKNg X-IronPort-AV: E=Sophos;i="4.67,306,1309730400"; d="scan'208";a="114769567" Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Aug 2011 15:34:53 +0200 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20110802133453.SMKJ2720.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Tue, 2 Aug 2011 14:34:53 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20110802133453.YHOM20122.aamtaout01-winn.ispmail.ntl.com@romulus.metastack.com> for ; Tue, 2 Aug 2011 14:34:53 +0100 Received: from DIVA ([172.16.0.7]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id p72DYnHC022420 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 2 Aug 2011 14:34:50 +0100 From: "David Allsopp" To: "OCaml List" Date: Tue, 2 Aug 2011 14:34:49 +0100 Organization: MetaStack Solutions Ltd. Message-ID: <000401cc5118$f4499630$dcdcc290$@metastack.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcxRGDjQkIV8aSixSOuybXx3rkJnEQ== Content-Language: en-us x-ms-exchange-organization-originalclientipaddress: 172.16.0.7 x-ms-exchange-organization-originalserveripaddress: fe80::547c:3c42:e1da:eda2%10 X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=cTs9vV391PwA:10 a=V35hxywFhi8A:10 a=kj9zAlcOel0A:10 a=p4X2KFxJr0aAbHWMyuoA:9 a=lGcpTFXxqa5_0mjGZksA:7 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: [Caml-list] ocaml-ssl on Windows It took a bit of fighting, but I managed to persuade ocaml-ssl 0.4.4 to compile with OCaml 3.12.0 using MinGW against a MinGW build of openssl 1.0.0d. The problem is that I get an Ssl.Connection_error Ssl.Error_syscall exception from Ssl.open_connection no matter what server I use. I can tell with a protocol analyser that a connection is made to the given server and a small amount of traffic is exchanged before the exception is raised. Has anyone else managed to get ocaml-ssl working on Windows and, if so, might they offer any pointers? OpenSSL doesn't seem to offer any kind of clue either to aid debugging further. Connecting to the same server works using openssl s_client (and the build of openssl passed everything in make test) TIA, David