From ae7ad31be209b8c0168c213a4dbc4f869f177823 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Thu, 29 Feb 2024 16:01:03 +0100 Subject: [PATCH] rustls: fix two warnings related to number types Reported-by: Gisle Vanem Follow-up to #12989 Closes #13017 --- lib/vtls/rustls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index 485b1d3890..367d7a5f40 100644 --- a/lib/vtls/rustls.c +++ b/lib/vtls/rustls.c @@ -292,7 +292,7 @@ cr_send(struct Curl_cfilter *cf, struct Curl_easy *data, DEBUGASSERT(backend); rconn = backend->conn; - CURL_TRC_CF(data, cf, "cf_send: %ld plain bytes", plainlen); + CURL_TRC_CF(data, cf, "cf_send: %zu plain bytes", plainlen); io_ctx.cf = cf; io_ctx.data = data; @@ -343,7 +343,7 @@ cr_send(struct Curl_cfilter *cf, struct Curl_easy *data, /* A server certificate verify callback for rustls that always returns RUSTLS_RESULT_OK, or in other words disable certificate verification. */ -static enum rustls_result +static uint32_t cr_verify_none(void *userdata UNUSED_PARAM, const rustls_verify_server_cert_params *params UNUSED_PARAM) { -- 2.47.3