mbedtls 2.7 has deprecated Diffie-Hellman groups from RFC 5114 in
https://github.com/ARMmbed/mbedtls/commit/0e6dc84f3ec1e67a93dc3221ccd605da79589da4#diff-12e227586f72d7fc03d416921e47b43aReplacing DH groups from RFC5114 by those in RFC3526 makes hiawatha build again. Disclaimer: I do not understand DH, as such I'm not sure that it is a good solution. For reference purposes:
--- src/tls.c.orig
+++ src/tls.c
@@ -345,7 +345,7 @@ int tls_set_config(mbedtls_ssl_config **tls_config, t_
mbedtls_ssl_conf_own_cert(*tls_config, tls_setup->certificate, tls_setup->private_key);
if (tls_setup->dh_size == 2048) {
- mbedtls_ssl_conf_dh_param(*tls_config, MBEDTLS_DHM_RFC5114_MODP_2048_P, MBEDTLS_DHM_RFC5114_MODP_2048_G);
+ mbedtls_ssl_conf_dh_param(*tls_config, MBEDTLS_DHM_RFC3526_MODP_2048_P, MBEDTLS_DHM_RFC3526_MODP_2048_G);
} else if (tls_setup->dh_size == 4096) {
mbedtls_ssl_conf_dh_param(*tls_config, dhm_4096_P, dhm_4096_G);
} else if (tls_setup->dh_size == 8192) {