Skip to content

Commit

Permalink
No HAVE_MBEDTLS
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Nov 9, 2024
1 parent 6439312 commit d9d9f68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
# define NETTLE_VERSION_MINOR 0
#endif

#ifdef HAVE_MBEDTLS
#include <mbedtls/version.h>
#endif

#include "FTL.h"
#include "args.h"
#include "version.h"
Expand Down
5 changes: 0 additions & 5 deletions src/webserver/webserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,6 @@ void http_init(void)
MG_FEATURES_IPV6 |
MG_FEATURES_CACHE;

#ifdef HAVE_MBEDTLS
features |= MG_FEATURES_TLS;
#endif

if(mg_init_library(features) == 0)
{
Expand Down Expand Up @@ -430,7 +427,6 @@ void http_init(void)
// from the end of the array.
unsigned int next_option = ArraySize(options) - 6;

#ifdef HAVE_MBEDTLS
// Add TLS options if configured

// TLS is used when webserver.port contains "s" (e.g. "443s")
Expand Down Expand Up @@ -480,7 +476,6 @@ void http_init(void)
config.webserver.tls.cert.v.s);
}
}
#endif
// Add access control list if configured (last two options)
if(strlen(config.webserver.acl.v.s) > 0)
{
Expand Down

0 comments on commit d9d9f68

Please sign in to comment.