]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix JWK debug prints
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 2 Jul 2017 09:36:01 +0000 (12:36 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Jul 2017 06:35:00 +0000 (09:35 +0300)
This function is used for parsing both the C-sign-key and netAccessKey,
so better not imply that all cases are C-sign-key in the debug prints.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/dpp.c

index 361a9d7dd369d940081057cbd969a350b50ebaf4..f564929ffb4531b2638d7ef443820bf45bc92e9e 100644 (file)
@@ -3364,10 +3364,10 @@ static EVP_PKEY * dpp_parse_jwk(struct json_token *jwk,
                wpa_printf(MSG_DEBUG, "DPP: No x in JWK");
                goto fail;
        }
-       wpa_hexdump_buf(MSG_DEBUG, "DPP: C-sign x", x);
+       wpa_hexdump_buf(MSG_DEBUG, "DPP: JWK x", x);
        if (wpabuf_len(x) != curve->prime_len) {
                wpa_printf(MSG_DEBUG,
-                          "DPP: Unexpected C-sign x length %u (expected %u for curve %s)",
+                          "DPP: Unexpected JWK x length %u (expected %u for curve %s)",
                           (unsigned int) wpabuf_len(x),
                           (unsigned int) curve->prime_len, curve->name);
                goto fail;
@@ -3378,10 +3378,10 @@ static EVP_PKEY * dpp_parse_jwk(struct json_token *jwk,
                wpa_printf(MSG_DEBUG, "DPP: No y in JWK");
                goto fail;
        }
-       wpa_hexdump_buf(MSG_DEBUG, "DPP: C-sign y", y);
+       wpa_hexdump_buf(MSG_DEBUG, "DPP: JWK y", y);
        if (wpabuf_len(y) != curve->prime_len) {
                wpa_printf(MSG_DEBUG,
-                          "DPP: Unexpected C-sign y length %u (expected %u for curve %s)",
+                          "DPP: Unexpected JWK y length %u (expected %u for curve %s)",
                           (unsigned int) wpabuf_len(y),
                           (unsigned int) curve->prime_len, curve->name);
                goto fail;