savonet / ocaml-ssl

OCaml SSL bindings.
http://liquidsoap.info/ocaml-ssl/
Other
57 stars 48 forks source link

Mark TLSv1, TLSv1_1, TLSv1_2 as deprecated #115

Closed craff closed 1 year ago

craff commented 1 year ago

It also avoids compilation warning related to these deprecations (from C and from OCaml now).

TODO: can we turn off only the deprecation warning about TLSV, to avoid missing a new deprecated feature ?

There is this:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
...
#pragma GCC diagnostic pop

But this is GCC specific ? Cheers, Christophe

anmonteiro commented 1 year ago

I thought a bit about this, and I think I'm not a fan of this direction:

Instead, how about:

  1. we make one last release with these APIs, which I suppose are needed for OpenSSL 1.0.2 compatibility (this statement needs checking)
  2. we go in the direction of #59 after said release, refactor to new APIs and drop compatibility with old OpenSSL versions

what do you think?

anmonteiro commented 1 year ago

Thank you, I took the liberty to deprecate even older versions, and added a changes entry.

craff commented 1 year ago

Antonio Nuno Monteiro writes:

Thank you, I took the liberty to deprecate even older versions, and added a changes entry.

Thanks to you!

-- Christophe Raffalli tél: +689 87 23 11 48 web: http://raffalli.eu

Ce mail est signé avec pgp (Pièce jointe signature.asc, clef sur https://raffalli.eu/pgp) This mail is signed with pgp (Attachment signature.asc, key on https://raffalli.eu/pgp)