caml-list - the Caml user's mailing list
 help / Atom feed
* [Caml-list] OCamlnet: handling TLS-errors
@ 2018-07-01 23:29 Oliver Bandel
  2018-08-02 20:58 ` Oliver Bandel
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Bandel @ 2018-07-01 23:29 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] OCamlnet: handling TLS-errors
  2018-07-01 23:29 [Caml-list] OCamlnet: handling TLS-errors Oliver Bandel
@ 2018-08-02 20:58 ` Oliver Bandel
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Bandel @ 2018-08-02 20:58 UTC (permalink / raw)
  To: caml-list

...see below.

Zitat von Oliver Bandel <oliver@first.in-berlin.de> (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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-01 23:29 [Caml-list] OCamlnet: handling TLS-errors Oliver Bandel
2018-08-02 20:58 ` Oliver Bandel

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox