summaryrefslogtreecommitdiff
path: root/vchat-connection.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-01-21 23:51:57 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-01-21 23:51:57 +0100
commitd7ecb3d0a7bb1f34def28296deafbb407bee4a77 (patch)
tree7918c1d77b4578acbe10a75b5c8c063d31e616dd /vchat-connection.c
parentbbf5d1685442431812387c77ed1cfd546824de88 (diff)
setting hostname is required for tls1.3 in mbedtls
Diffstat (limited to 'vchat-connection.c')
-rw-r--r--vchat-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vchat-connection.c b/vchat-connection.c
index dea69d0..d0abc0d 100644
--- a/vchat-connection.c
+++ b/vchat-connection.c
@@ -166,7 +166,7 @@ int vc_connect(const char *server, const char *port) {
166#endif 166#endif
167#ifdef TLS_LIB_MBEDTLS 167#ifdef TLS_LIB_MBEDTLS
168 if (_engine == TLS_ENGINE_MBEDTLS) 168 if (_engine == TLS_ENGINE_MBEDTLS)
169 result = vc_mbedtls_connect(serverfd, &vc_store); 169 result = vc_mbedtls_connect(server, serverfd, &vc_store);
170#endif 170#endif
171 vc_cleanup_x509store(&vc_store); 171 vc_cleanup_x509store(&vc_store);
172 172