Skip to content

Commit

Permalink
Fix HTTPS endpoint
Browse files Browse the repository at this point in the history
See Mbed-TLS/mbedtls#9223 for more details
  • Loading branch information
rcelyte committed Jun 9, 2024
1 parent b5483a5 commit 2386009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/status/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ bool HttpContext_init(struct HttpContext *const self, const NetSocket fd, mbedtl
return false;
}
mbedtls_ssl_init(&self->ssl);
mbedtls_ssl_conf_max_tls_version(sslConfig, MBEDTLS_SSL_VERSION_TLS1_2); // https://github.com/Mbed-TLS/mbedtls/issues/9223
int res = mbedtls_ssl_setup(&self->ssl, sslConfig);
if(res) {
uprintf("mbedtls_ssl_setup() failed: %s\n", mbedtls_high_level_strerr(res));
Expand Down

0 comments on commit 2386009

Please sign in to comment.