aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-05-16 18:01:51 (GMT)
committerJouni Malinen <j@w1.fi>2020-05-16 18:01:51 (GMT)
commit6a28c4dbc102de3fed9db44637f47a10e7adfb78 (patch)
tree1f3de94de27f866b19a227287b0c123a90ba9f89 /src/crypto
parentf2dbaa8ace307de275f7580fa2788b3943fb6fc9 (diff)
downloadhostap-6a28c4dbc102de3fed9db44637f47a10e7adfb78.zip
hostap-6a28c4dbc102de3fed9db44637f47a10e7adfb78.tar.gz
hostap-6a28c4dbc102de3fed9db44637f47a10e7adfb78.tar.bz2
wolfssl: Fix compiler warnings on size_t printf format use
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/tls_wolfssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c
index d222d14..11e6582 100644
--- a/src/crypto/tls_wolfssl.c
+++ b/src/crypto/tls_wolfssl.c
@@ -1741,7 +1741,7 @@ struct wpabuf * tls_connection_encrypt(void *tls_ctx,
if (!conn)
return NULL;
- wpa_printf(MSG_DEBUG, "SSL: encrypt: %ld bytes", wpabuf_len(in_data));
+ wpa_printf(MSG_DEBUG, "SSL: encrypt: %zu bytes", wpabuf_len(in_data));
wolfssl_reset_out_data(&conn->output);
@@ -1792,7 +1792,7 @@ struct wpabuf * tls_connection_decrypt(void *tls_ctx,
}
wpabuf_put(buf, res);
- wpa_printf(MSG_DEBUG, "SSL: decrypt: %ld bytes", wpabuf_len(buf));
+ wpa_printf(MSG_DEBUG, "SSL: decrypt: %zu bytes", wpabuf_len(buf));
return buf;
}