From: Jouni Malinen Date: Sun, 27 Jun 2010 04:06:44 +0000 (-0700) Subject: WPS: Make DH debug prints easier to understand X-Git-Tag: hostap-1-bp~1239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92afbe9d63ed76c3e3351ffed74cb3b3ca4a6fc0;p=thirdparty%2Fhostap.git WPS: Make DH debug prints easier to understand --- diff --git a/src/wps/wps_attr_build.c b/src/wps/wps_attr_build.c index 9b345f11b..19ff8218c 100644 --- a/src/wps/wps_attr_build.c +++ b/src/wps/wps_attr_build.c @@ -48,7 +48,7 @@ int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) return -1; } wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); - wpa_hexdump_buf(MSG_DEBUG, "WPS: DH Public Key", pubkey); + wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey); wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); wpabuf_put_be16(msg, wpabuf_len(pubkey)); diff --git a/src/wps/wps_common.c b/src/wps/wps_common.c index f7cb7b832..b74853c26 100644 --- a/src/wps/wps_common.c +++ b/src/wps/wps_common.c @@ -82,7 +82,7 @@ int wps_derive_keys(struct wps_data *wps) } wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); - wpa_hexdump_buf(MSG_DEBUG, "WPS: DH Public Key", pubkey); + wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey); dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); dh5_free(wps->dh_ctx); wps->dh_ctx = NULL;