etr / libhttpserver

C++ library for creating an embedded Rest HTTP server (and more)
GNU Lesser General Public License v2.1
882 stars 184 forks source link

Adding TLS-PSK authentication method via function callback. #333

Open oberdorc opened 6 months ago

oberdorc commented 6 months ago

Identify the Bug adding a Feature

Description of the Change

Verification Process

Obviously without HAVE_GNUTLS beeing defined essential parts of the code are not compiled. This has been checked making sure that the flag is included in the config.h file that is created for the build process.

The error message from libmicrohttpd has dissappeared.

A mininimal example and test case for HTTPS PSK authentication has been added and test with the openssl command.

oberdorc commented 6 months ago

So, there remains one formatting issue indicated by cpplint, which seems to be a false-positive. Quite sad. And then there is some issue with a conftest program which fails to compile for some reason. I give up on that.