From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTPS id 2AB6E5D5 for ; Sun, 1 Jul 2018 23:29:56 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.51,296,1526335200"; d="scan'208";a="334751405" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 02 Jul 2018 01:29:54 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 67FAF82486; Mon, 2 Jul 2018 01:29:54 +0200 (CEST) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 3DD0682486 for ; Mon, 2 Jul 2018 01:29:45 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=oliver@first.in-berlin.de; spf=None smtp.mailfrom=oliver@first.in-berlin.de; spf=None smtp.helo=postmaster@einhorn-mail.in-berlin.de IronPort-PHdr: =?us-ascii?q?9a23=3AIxbNrR/4W70GpP9uRHKM819IXTAuvvDOBiVQ1KB4?= =?us-ascii?q?1u4cTK2v8tzYMVDF4r011RmVBduds6oMotGVmpioYXYH75eFvSJKW713fDhBt/?= =?us-ascii?q?8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1?= =?us-ascii?q?Ifn+FpLPg8it2O2+55zebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+?= =?us-ascii?q?RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTF?= =?us-ascii?q?UACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRh/2hi?= =?us-ascii?q?kaOTE27G7YhdFrgaJHvB6tuwBzz5LObYyXMvd1Y6PTfckdRWpERstfTihBAoKi?= =?us-ascii?q?b4QRFeoKIPtVoJP7p1QTsxS+ARSnCeToyj9Mh3/2w7M10/46HAHI3QwgBckOsG?= =?us-ascii?q?jOoNX0MqceSPu6w7fSzTXHbvNW3y3x55XWfR04p/yHQLF+cdLJxEUxCg/IjE+c?= =?us-ascii?q?pZHhMj6XzOgAsHSX4/B+We6zk2Iqrx99riKxysoil4XFnJ8Zx1LK+Clj3Yo4Ks?= =?us-ascii?q?C0RUhmatC+CpRQrTuVN45uT8MiXW5ovCE6x6UYtp66eigKyJMnxwTZa/CedoiH?= =?us-ascii?q?+BPjVOKLLTd5gnJpYamwiAio8Uiky+38UNO430tUoSZdk9nMsG4C1wDL58SZV/?= =?us-ascii?q?dw/F2t1SuL2g3R8O1JIlw4mbDFJ5I92rIwk4AcsUXHHi/4gkX2i6qWe10j+uis?= =?us-ascii?q?6uTnfKvppoWHOo96iwH+KL8umtClDeQ5NAgCRnOU9vqm1L3n/E35Rq9GgeAona?= =?us-ascii?q?XBqpDVOdwbprKlAw9Syoss9wywDzKi0NgBmXkHLUlFeA6cgojyO1DOJej4Au2l?= =?us-ascii?q?j1Stljdr3fHGMaf7DpXDNHiQ2IvmKL107koZzAso0fhe4YhVA/cPOqHdQEj04f?= =?us-ascii?q?vcDwE0KUSeyuDrBdE1goQaWHyCGIeXMbnJrRmJ4KclLvOIZYlTtDureKtt3OLn?= =?us-ascii?q?kXJswQxVRqKux5ZCMCnpTMQjGF2QZD/XuvlEFG4LugQkS+mw0A+MUCRIezCzWe?= =?us-ascii?q?c26ys/CYTgAYqRHtnx0ozE5z+yG9htXk4DEkqFSy+6eYSeQOtKaSTXKMJ7lj0C?= =?us-ascii?q?E7SsGdd4iEOe8TTiwr8iFdL6vy0VsZW5i4p45uvTkgs0sDl9DsDb0mfIRWxumm?= =?us-ascii?q?IOATM7jvhy?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BuGAC2YjlbhxRQxdlcHgEGDIUqhCGIY?= =?us-ascii?q?4tclyyBeQssh2QZBgY5DwECAQECAQEBAQETAQEBCgsJCCkvgjUigwkVdgIYDgK?= =?us-ascii?q?EEoIABKdqghyIR4EugQuHYoIViFKBE4I0glUCh2eRXwl5jhkSDU5ehk0phR+RY?= =?us-ascii?q?AIEAgQFAhMBBIFnA4FdMxoIHBSDJYFsAQEBQo4igWQeDY0MgjkBAQ?= X-IPAS-Result: =?us-ascii?q?A0BuGAC2YjlbhxRQxdlcHgEGDIUqhCGIY4tclyyBeQssh2Q?= =?us-ascii?q?ZBgY5DwECAQECAQEBAQETAQEBCgsJCCkvgjUigwkVdgIYDgKEEoIABKdqghyIR?= =?us-ascii?q?4EugQuHYoIViFKBE4I0glUCh2eRXwl5jhkSDU5ehk0phR+RYAIEAgQFAhMBBIF?= =?us-ascii?q?nA4FdMxoIHBSDJYFsAQEBQo4igWQeDY0MgjkBAQ?= X-IronPort-AV: E=Sophos;i="5.51,296,1526335200"; d="scan'208";a="334751341" Received: from einhorn-mail.in-berlin.de ([217.197.80.20]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2018 01:29:44 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from localhost (yak.in-berlin.de [192.109.42.109]) by einhorn.in-berlin.de with ESMTP id w61NThST003306 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 2 Jul 2018 01:29:43 +0200 Received: from x5ce7ad8d.dyn.telefonica.de (x5ce7ad8d.dyn.telefonica.de [92.231.173.141]) by webmail.in-berlin.de (Horde Framework) with HTTPS; Mon, 02 Jul 2018 01:29:43 +0200 Date: Mon, 02 Jul 2018 01:29:43 +0200 Message-ID: <20180702012943.Horde.jlAWicnynJ1OLBwxZ2e3814@webmail.in-berlin.de> From: Oliver Bandel To: caml-list@inria.fr User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: [Caml-list] OCamlnet: handling TLS-errors Reply-To: Oliver Bandel X-Loop: caml-list@inria.fr X-Sequence: 16966 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hello, how to handle TLS-errors in OCamlnet? To be more specific on what the problem is: in some rare cases, accessing websites with OCamlnet throws the error GNUTLS_E_PREMATURE_TERMINATION. For security-sensible applications aborting the access would be best. In the use-case that I have, the TLS-error is not a problem, the data is not security-sensitive. (Webbrowsers just ignore this error and display the webpage without mourning.) What I want to do is, to access the data that was already read and use it. So I want to just "ignore"/"catch" the TLS-error. How to do that in OCamlnet? Is it necessary to write my own TLS-provider? And how would that look like? Regards, Oliver -- Caml-list mailing list. Subscription management and archives: https://sympa.inria.fr/sympa/arc/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs