SSL Support in libmicrohttpd 0.4.6 (Ubuntu 12.04 LTS)

Asked by Peter on 2014-11-15

I have a question about a package you seem to have packaged. It is
libmicrohttpd 0.4.6-1 (http://packages.ubuntu.com/precise/libmicrohttpd-dev)

In short: Does this version have SSL support compiled in? How can I
check that?

In long:
I try to build a library which uses the SSL support of libmicrohttpd. It
works very fine under current Debian Wheezy and Jessie, which use more
recent versions.

Under Ubuntu I have troubles starting a MHD_Daemon with the exact same code:

https://github.com/cinemast/libjson-rpc-cpp/blob/develop/src/jsonrpccpp/server/connectors/httpserver.cpp#L60

So my question is: Does libmicrohttpd 0.4.6 in Ubuntu 12.04 have SSL
support? If I build the package manually on my dev machine running 12.04
using apt-get source and debuild, SSL support works fine.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libmicrohttpd Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2014-11-19
Last query:
2014-11-19
Last reply:
2014-11-18

The changelog may have it

Peter (psk-q) said : #2

Apparently it does not. Because the required dependencies for that (libgcrypt and libgnutls) are not listed as dependencies here. Is there a certain reason for that?

Manfred Hampl (m-hampl) said : #3

It might me that the version that was current at the publication date of precise, and that is contained in precise (0.4.6) did not have SSL support, but the newer versions (0.9.x) delivered with trusty and newer Ubuntu releases, do have these features.

You could try updating to a higher version provided in a PPA, e.g. https://launchpad.net/~dns/+archive/ubuntu/gnu or https://launchpad.net/~teward/+archive/ubuntu/libmicrohttpd-quantal

If you deem the improvements of that higher version important enough, you can also request an official backport of the 0.9.x version to precise by creating a bug report for that.

Peter (psk-q) said : #4

Thank you for your answer.

The upstream version 0.4.6 comes with SSL support as long as libgnutls and libgcrypt are found. So basically what is missing here are build-dependencies (libgnutls-dev, libgcrypt11-dev) in the source package and package-dependencies (libgnutls28, libgcrypt11) in the resulting binary package.

Would ubuntu accept a patch to the source package in 12.04? Since it changes dependencies? Or would it be better to backport?

Best Manfred Hampl (m-hampl) said : #5

Are you sure that it makes sense to patch the 0.4.6 version to activate SSL support, if there is a 0.9.x version available?
I would try going for a backport of the 0.9 version.

Peter (psk-q) said : #6

Thanks Manfred Hampl, that solved my question.