diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-10 23:36:08 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-10 23:36:08 +0000 |
commit | 29930f9329edf2c69d0b17798bb5f74a429aca5b (patch) | |
tree | c80e051f51b2f0e670ef7ca081bf803caf53af0e | |
parent | e74593cb8c18c540c0d377e78bb539c3ebdaa086 (diff) | |
download | xombrero-29930f9329edf2c69d0b17798bb5f74a429aca5b.tar.gz |
better feedback when handling certificates.
-rw-r--r-- | xxxterm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index cd34856..3704f57 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -2438,8 +2438,13 @@ cert_cmd(struct tab *t, struct karg *args) frame = webkit_web_view_get_main_frame(t->wv); uri = (char *)webkit_web_frame_get_uri(frame); - if ((s = connect_socket_from_uri(uri, domain, sizeof domain)) == -1) + if (uri && strlen(uri) == 0) { + show_oops(t, "Invalid URI"); + } + if ((s = connect_socket_from_uri(uri, domain, sizeof domain)) == -1) { + show_oops(t, "Invalid certidicate URI: %s", uri); return (1); + } /* go ssl/tls */ if (start_tls(t, s, &gsession, &xcred)) { |