From: Ben Greear <[email protected]>
Try to make some of the debugging messages a bit more unique so it
is easier to figure out what is happening.
Signed-off-by: Ben Greear <[email protected]>
---
hs20/client/osu_client.c | 4 ++--
hs20/client/spp_client.c | 4 ++--
hs20/server/ca/ocsp-update-cache.sh | 1 +
src/utils/browser.c | 3 +++
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 0e0202007..1aeb2f69c 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -2276,7 +2276,7 @@ static int osu_connect(struct hs20_osu_client *ctx, const char *bssid,
wpa_ctrl_close(mon);
if (res < 0) {
- wpa_printf(MSG_INFO, "Could not connect");
+ wpa_printf(MSG_INFO, "Could not connect to OSU network");
write_summary(ctx, "Could not connect to OSU network");
wpa_printf(MSG_INFO, "Remove OSU network connection");
snprintf(buf, sizeof(buf), "REMOVE_NETWORK %d", id);
@@ -3470,7 +3470,7 @@ int main(int argc, char *argv[])
exit(0);
}
- wpa_printf(MSG_INFO, "Launch web browser to URL %s",
+ wpa_printf(MSG_INFO, "main: Launch web browser to URL %s",
argv[optind + 1]);
ret = hs20_web_browser(argv[optind + 1], ctx.ignore_tls);
wpa_printf(MSG_INFO, "Web browser result: %d", ret);
diff --git a/hs20/client/spp_client.c b/hs20/client/spp_client.c
index 786b0339a..49767a3ca 100644
--- a/hs20/client/spp_client.c
+++ b/hs20/client/spp_client.c
@@ -545,8 +545,8 @@ static int hs20_spp_exec(struct hs20_osu_client *ctx, xml_node_t *exec,
free(id);
return -1;
}
- wpa_printf(MSG_INFO, "Launch browser to URI '%s'", uri);
- write_summary(ctx, "Launch browser to URI '%s'", uri);
+ wpa_printf(MSG_INFO, "spp-exec: Launch browser to URI '%s'", uri);
+ write_summary(ctx, "spp-exec: Launch browser to URI '%s'", uri);
res = hs20_web_browser(uri, 1);
xml_node_get_text_free(ctx->xml, uri);
if (res > 0) {
diff --git a/hs20/server/ca/ocsp-update-cache.sh b/hs20/server/ca/ocsp-update-cache.sh
index 8ddef9b9c..8a9a665f4 100755
--- a/hs20/server/ca/ocsp-update-cache.sh
+++ b/hs20/server/ca/ocsp-update-cache.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+# NOTE: You may need to replace 'localhost' with your ocsp hostname instead.
openssl ocsp \
-no_nonce \
-CAfile ca.pem \
diff --git a/src/utils/browser.c b/src/utils/browser.c
index f864fbf0e..ec92c8807 100644
--- a/src/utils/browser.c
+++ b/src/utils/browser.c
@@ -63,6 +63,9 @@ static void process_request_starting_uri(struct browser_context *ctx,
{
int quit = 0;
+ wpa_printf(MSG_DEBUG, "BROWSER: process-request-starting-uri: %s started: %d\n",
+ uri, ctx->gtk_main_started);
+
if (g_str_has_prefix(uri, "osu://")) {
ctx->success = atoi(uri + 6);
quit = 1;
--
2.14.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.