summaryrefslogtreecommitdiff
path: root/lib/vtls/rustls.c
diff options
context:
space:
mode:
authorKevin Burke <kevin@burke.dev>2021-11-02 22:14:02 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-11-11 13:47:25 +0100
commitb7757c2b811927ed45588c2ef1a48ab60f11516d (patch)
tree4f86b3cab77c6c559ea6982ce457d94a762cbf2f /lib/vtls/rustls.c
parenteed7473eebc37ebca98c1e5d72138e339e764d9d (diff)
downloadcurl-b7757c2b811927ed45588c2ef1a48ab60f11516d.tar.gz
vtls/rustls: update to compile with rustls-ffi v0.8.0
Some method names, as well as the generated library name, were changed in a recent refactoring. Further, change the default configuration instructions to check for Hyper in either "target/debug" or "target/release" - the latter contains an optimized build configuration. Fixes #7947 Closes #7948
Diffstat (limited to 'lib/vtls/rustls.c')
-rw-r--r--lib/vtls/rustls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c
index 2ac97ce28..338dc7246 100644
--- a/lib/vtls/rustls.c
+++ b/lib/vtls/rustls.c
@@ -27,7 +27,7 @@
#include "curl_printf.h"
#include <errno.h>
-#include <crustls.h>
+#include <rustls.h>
#include "inet_pton.h"
#include "urldata.h"
@@ -309,10 +309,10 @@ cr_init_backend(struct Curl_easy *data, struct connectdata *conn,
config_builder = rustls_client_config_builder_new();
#ifdef USE_HTTP2
infof(data, "offering ALPN for HTTP/1.1 and HTTP/2");
- rustls_client_config_builder_set_protocols(config_builder, alpn, 2);
+ rustls_client_config_builder_set_alpn_protocols(config_builder, alpn, 2);
#else
infof(data, "offering ALPN for HTTP/1.1 only");
- rustls_client_config_builder_set_protocols(config_builder, alpn, 1);
+ rustls_client_config_builder_set_alpn_protocols(config_builder, alpn, 1);
#endif
if(!verifypeer) {
rustls_client_config_builder_dangerous_set_certificate_verifier(