summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/curl/curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 71204ee32..46503178d 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -155,7 +155,8 @@ typedef enum {
CURLSSLBACKEND_AXTLS = 10, /* never used since 7.63.0 */
CURLSSLBACKEND_MBEDTLS = 11,
CURLSSLBACKEND_MESALINK = 12,
- CURLSSLBACKEND_BEARSSL = 13
+ CURLSSLBACKEND_BEARSSL = 13,
+ CURLSSLBACKEND_RUSTLS = 14
} curl_sslbackend;
/* aliases for library clones and renames */