summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2020-12-12 23:55:09 -0800
committerDaniel Stenberg <daniel@haxx.se>2021-02-09 11:06:18 +0100
commit246399a8745369b63cad53ea189a5205f237fa31 (patch)
treeb36f7ed0abdf420ab6b2fb00ffd4c6be587bc470 /lib/multi.c
parent3eebbfe8f34d37c4d68d08277a44ec7aa6bd0889 (diff)
downloadcurl-246399a8745369b63cad53ea189a5205f237fa31.tar.gz
vtls: initial implementation of rustls backend
This adds a new TLS backend, rustls. It uses the C-to-rustls bindings from https://github.com/abetterinternet/crustls. Rustls is at https://github.com/ctz/rustls/. There is still a fair bit to be done, like sending CloseNotify on connection shutdown, respecting CAPATH, and properly indicating features like "supports TLS 1.3 ciphersuites." But it works well enough to make requests and receive responses. Blog post for context: https://www.abetterinternet.org/post/memory-safe-curl/ Closes #6350
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 85707a1af..e0862551d 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -905,7 +905,7 @@ static int waitconnect_getsock(struct connectdata *conn,
#ifdef USE_SSL
#ifndef CURL_DISABLE_PROXY
if(CONNECT_FIRSTSOCKET_PROXY_SSL())
- return Curl_ssl_getsock(conn, sock);
+ return Curl_ssl->getsock(conn, sock);
#endif
#endif