Force schannel to use RC4 to get around an schannel DES bug.

Fix a bug where a failed tls_start would cause a loop.
Moved static variables in schannel into the tls struct.
This commit is contained in:
James Canete
2007-11-15 03:12:18 +00:00
parent 1f453d2ecf
commit dd86aedd19
3 changed files with 110 additions and 76 deletions

View File

@@ -224,7 +224,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
if (conn->tls) {
if (!tls_is_recoverable(tls_error(conn->tls)))
{
xmpp_debug(ctx, "xmpp", "Unrecoverable TLS error.");
xmpp_debug(ctx, "xmpp", "Unrecoverable TLS error, %d.", tls_error(conn->tls));
conn->error = tls_error(conn->tls);
conn_disconnect(conn);
}