464bcff0b5ea857b99816cb3c9134d5106a80961
[openwrt/staging/svanheule.git] /
1 From 6a28c4dbc102de3fed9db44637f47a10e7adfb78 Mon Sep 17 00:00:00 2001
2 From: Jouni Malinen <j@w1.fi>
3 Date: Sat, 16 May 2020 21:01:51 +0300
4 Subject: [PATCH 1/3] wolfssl: Fix compiler warnings on size_t printf format
5 use
6
7 Signed-off-by: Jouni Malinen <j@w1.fi>
8 ---
9 src/crypto/tls_wolfssl.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12 --- a/src/crypto/tls_wolfssl.c
13 +++ b/src/crypto/tls_wolfssl.c
14 @@ -1741,7 +1741,7 @@ struct wpabuf * tls_connection_encrypt(v
15 if (!conn)
16 return NULL;
17
18 - wpa_printf(MSG_DEBUG, "SSL: encrypt: %ld bytes", wpabuf_len(in_data));
19 + wpa_printf(MSG_DEBUG, "SSL: encrypt: %zu bytes", wpabuf_len(in_data));
20
21 wolfssl_reset_out_data(&conn->output);
22
23 @@ -1792,7 +1792,7 @@ struct wpabuf * tls_connection_decrypt(v
24 }
25 wpabuf_put(buf, res);
26
27 - wpa_printf(MSG_DEBUG, "SSL: decrypt: %ld bytes", wpabuf_len(buf));
28 + wpa_printf(MSG_DEBUG, "SSL: decrypt: %zu bytes", wpabuf_len(buf));
29
30 return buf;
31 }