Add stop-gap SSL cert verification. Currently ignores problems and continues anyway to allow access to SSL sites. A dialogue box providing the user with an opportunity to decline the certificate is on the TODO list.

svn path=/trunk/netsurf/; revision=3371
This commit is contained in:
Rob Kendrick 2007-06-27 16:06:42 +00:00
parent 2c27a6ad55
commit 31cde5dcde
1 changed files with 11 additions and 1 deletions

View File

@ -426,7 +426,17 @@ void hotlist_visited(struct content *content)
}
void gui_cert_verify(struct browser_window *bw, struct content *c,
const struct ssl_cert_info *certs, unsigned long num) {}
const struct ssl_cert_info *certs, unsigned long num)
{
/* TODO: we should open a window showing what the certificate
* problem is and offer the user the choice to reject it. Until
* we do this, we just always accept them.
* */
urldb_set_cert_permissions(c->url, true);
browser_window_go(bw, c->url, 0, true);
}
utf8_convert_ret utf8_to_local_encoding(const char *string, size_t len,
char **result)