Re: [libmicrohttpd] using other TLS libraries

2017-10-25 Thread Christian Grothoff
Yes, that is exactly what I would like to see, and AFAIK Evgeny has started to hack on it. -Christian On 10/25/2017 04:20 PM, Gauthier Haderer wrote: > Hi Christan, > > I'm not sure I really understand your point. > > Regarding the detection of TLS backend's availability, one can use the > func

Re: [libmicrohttpd] using other TLS libraries

2017-10-25 Thread Gauthier Haderer
Hi Evgeny, I'm not familiar with the new API. I noticed it was under development but I don't know much about it. I'll try to take time to review the current proposal. Cheers, Gauthier > Hi Gauthier, > I've done impressive work. > We have very similar plans for integrated support for multiple T

Re: [libmicrohttpd] using other TLS libraries

2017-10-25 Thread Gauthier Haderer
Hi Denis, Well seen! This is a small typo but it highlighted several issues in my update of existing tests. The OpenSSL engine was identified as GnuTLS and it caused MHD to allow calls to GnuTLS-specific options that should be rejected when using OpenSSL. As I forgot to change a few occurences of

Re: [libmicrohttpd] using other TLS libraries

2017-10-25 Thread Gauthier Haderer
Hi Christan, I'm not sure I really understand your point. Regarding the detection of TLS backend's availability, one can use the function MHD_TLS_is_feature_supported() to test if a backend is present. Of course, if MHD was built without support for a TLS backend, a client won't be able to use i

Re: [libmicrohttpd] using other TLS libraries

2017-10-19 Thread Denis Dowling
From: libmicrohttpd [mailto:libmicrohttpd-bounces+denis.dowling=hsd.com...@gnu.org] On Behalf Of Gauthier Haderer Sent: Thursday, 19 October 2017 1:02 AM To: libmicrohttpd@gnu.org Subject: [libmicrohttpd] using other TLS libraries Hello, I recently made changes to abstract the TLS API needed

Re: [libmicrohttpd] using other TLS libraries

2017-10-19 Thread Christian Grothoff
Hi Gauthier, I agree with Evgeny, good job. However, there is one (modest) change I would like to see, which is that the TLS backend(s) should be loaded via dlopen()/dlsym()/libltdl instead of hard-linked with MHD. That way, we could actually have one "libmicrohttpd.so" binary installed and the ap

Re: [libmicrohttpd] using other TLS libraries

2017-10-18 Thread Evgeny Grin
Hi Gauthier, I've done impressive work. We have very similar plans for integrated support for multiple TLS backends. However, I believe that we should start porting on updated MHD API (see microhttpd2.h). One of the goals of new API is to make MHD more TLS-lib independent. In the meantime, you co

[libmicrohttpd] using other TLS libraries

2017-10-18 Thread Gauthier Haderer
Hello, I recently made changes to abstract the TLS API needed by MHD. And I added support for OpenSSL. Could someone review my changes and tell me if this is something that could be part of an official version? You will find more information here: https://gnunet.org/bugs/view.php?id=4917#c12475