# HG changeset patch # User William Ehlhardt # Date 1182903760 0 # Node ID db67f6b39b7287aa69ed902efb160e319600f376 # Parent 9205841eed0627fa23f881a5403d42dce8e26b74 - Hack up sslconn to use a single-use verifier diff -r 9205841eed06 -r db67f6b39b72 libpurple/sslconn.c --- 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);