[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] MHD_start_daemon with MHD_USE_SSL returns NULL

From: Christian Grothoff
Subject: Re: [libmicrohttpd] MHD_start_daemon with MHD_USE_SSL returns NULL
Date: Fri, 4 Dec 2020 18:12:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

Eh, you may need to give additional arguments to ensure configure finds
the cross-compiled GnuTLS library. I've not done this myself recently,
but in principle the --with-gnutls=FOO should suffice.

Anyway, you can read the configure output (and config.log) closely to
see if it worked / if this was truly the issue ;-).

Happy hacking!


On 12/4/20 6:04 PM, DJM-Avalesta wrote:
> Hi Christian,
> Thanks, I believe you are right.
> How do I build (cross-compile) MHD with support for TLS?
> I have downloaded gnutls and I will figure out how to cross compile it,
> but how do I then link it in with my build of MHD?
> My configure command is currently this
> ./configure --host=arm CC=arm-none-linux-gnueabi-gcc
> I'm guessing I need to modify this for gnutls support?
> Best regards
> David
> On 2020-12-04 3:54 pm, Christian Grothoff wrote:
>> Maybe configure failed to find a sufficiently recent version of gnutls,
>> and so MHD was built without support for TLS? That'd be the simplest
>> explanation I can think of...
>> Happy hacking!
>> -Christian
>> On 12/4/20 4:48 PM, DJM-Avalesta wrote:
>>> Hi
>>> I recently upgraded from libmicrohttpd 0.9.24 to version 0.9.71. Now I
>>> find that the following call to MHD_start_daemon (using SSL for HTTPS)
>>> no longer works, it just returns NULL.
>>> m_pHttpd = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL
>>> port, NULL, NULL,
>>> CHttpWrapper::http_access_callback, (void *)g_StreamManagerArray,
>>> CHttpWrapper::http_RequestCompletedCallback, NULL,
>>> My other similar calls to MHD_start_daemon without SSL still work fine.
>>> Could you tell me what has changed to stop this working?
>>> Best regards
>>> David

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]