Mercurial > pidgin
changeset 18958:db67f6b39b72
- Hack up sslconn to use a single-use verifier
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 00:22:40 +0000 |
parents | 9205841eed06 |
children | 88be01d503fb 6831c126bcf3 |
files | libpurple/sslconn.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/sslconn.c Wed Jun 27 00:16:58 2007 +0000 +++ b/libpurple/sslconn.c Wed Jun 27 00:22:40 2007 +0000 @@ -118,6 +118,10 @@ gsc->connect_cb = func; gsc->error_cb = error_func; + /* TODO: remove the following line, as the verifier should be + specified Somewhere Else */ + gsc->verifier = purple_certificate_find_verifier("x509","singleuse"); + gsc->connect_data = purple_proxy_connect(NULL, account, host, port, purple_ssl_connect_cb, gsc); if (gsc->connect_data == NULL) @@ -190,6 +194,10 @@ if(host) gsc->host = g_strdup(host); + /* TODO: remove the following line, as the verifier should be + specified Somewhere Else */ + gsc->verifier = purple_certificate_find_verifier("x509","singleuse"); + ops = purple_ssl_get_ops(); ops->connectfunc(gsc);