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 ESMTP id 0520D5D4 for ; Thu, 2 Aug 2018 20:58:43 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.51,436,1526335200"; d="scan'208";a="341241321" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 02 Aug 2018 22:58:41 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 37E57824C2; Thu, 2 Aug 2018 22:58:41 +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 247AC82486 for ; Thu, 2 Aug 2018 22:58:36 +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=3AjCnvbhTQet5rUmFUxLbXSr4jQ9psv+yvbD5Q0YIu?= =?us-ascii?q?jvd0So/mwa69bRCN2/xhgRfzUJnB7Loc0qyK6/6mATRIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSizexfbJ/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf?= =?us-ascii?q?5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbD?= =?us-ascii?q?VwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlS?= =?us-ascii?q?gHLSY0/mHJhMJtjq1Urg6uqBNizIPPfIGZKOZycr/Bcd4AR2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B3c9Q4Bpzg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0A9BAAlcGNbexRQxdlcHgEYCwcGhBN/K?= =?us-ascii?q?IN+iGWLZoFoJZdUCyMJhEACgwUZBgY0FAECAQECAQEBAQETAQELCwoHKSMMgjU?= =?us-ascii?q?igmABAgIBIxVGFhoCGA4CWRmDIYF3CAQLswqBLopTBYELh30XggCBRYJfhDiBE?= =?us-ascii?q?4I0glUCkhmIDQl8jjsTD09jhmYqhTuSIgIEAgQFAhMBBIFUgXMzGggcFIMkhjS?= =?us-ascii?q?KIW0Bdx4Ni1yCOgEB?= X-IPAS-Result: =?us-ascii?q?A0A9BAAlcGNbexRQxdlcHgEYCwcGhBN/KIN+iGWLZoFoJZd?= =?us-ascii?q?UCyMJhEACgwUZBgY0FAECAQECAQEBAQETAQELCwoHKSMMgjUigmABAgIBIxVGF?= =?us-ascii?q?hoCGA4CWRmDIYF3CAQLswqBLopTBYELh30XggCBRYJfhDiBE4I0glUCkhmIDQl?= =?us-ascii?q?8jjsTD09jhmYqhTuSIgIEAgQFAhMBBIFUgXMzGggcFIMkhjSKIW0Bdx4Ni1yCO?= =?us-ascii?q?gEB?= X-IronPort-AV: E=Sophos;i="5.51,436,1526335200"; d="scan'208";a="341241281" 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 Aug 2018 22:58:17 +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 w72KwGIG003683 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 2 Aug 2018 22:58:16 +0200 Received: from x4e37d818.dyn.telefonica.de (x4e37d818.dyn.telefonica.de [78.55.216.24]) by webmail.in-berlin.de (Horde Framework) with HTTPS; Thu, 02 Aug 2018 22:58:16 +0200 Date: Thu, 02 Aug 2018 22:58:16 +0200 Message-ID: <20180802225816.Horde.mOhld_iOSYDjylRzvpSMJoE@webmail.in-berlin.de> From: Oliver Bandel To: caml-list@inria.fr In-Reply-To: <20180702012943.Horde.jlAWicnynJ1OLBwxZ2e3814@webmail.in-berlin.de> 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: Re: [Caml-list] OCamlnet: handling TLS-errors Reply-To: Oliver Bandel X-Loop: caml-list@inria.fr X-Sequence: 17021 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: ...see below. Zitat von Oliver Bandel (Mon, 02 Jul 2018 01:29:43 +0200) > 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 Hello, here are some sources to test the issue: https://www.first.in-berlin.de/mixed/ocamlnet-gnutls-error/ The zip-file contains the three other files. Just "make" should compile the stuff. Any help is welcome. Ciao, 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