Comparison

core/s2smanager.lua @ 2545:99700e601d16

s2smanager: Update for new server SSL API (don't pass a sslctx)
author Matthew Wild <mwild1@gmail.com>
date Sun, 31 Jan 2010 15:41:33 +0000
parent 2539:7174e6ea069d
child 2613:afa20941e098
comparison
equal deleted inserted replaced
2544:b68cbc664d18 2545:99700e601d16
319 log("warn", "s2s connect() to %s (%s:%d) failed: %s", host_session.to_host, connect_host, connect_port, err); 319 log("warn", "s2s connect() to %s (%s:%d) failed: %s", host_session.to_host, connect_host, connect_port, err);
320 return false, err; 320 return false, err;
321 end 321 end
322 322
323 local cl = connlisteners_get("xmppserver"); 323 local cl = connlisteners_get("xmppserver");
324 conn = wrapclient(conn, connect_host, connect_port, cl, cl.default_mode or 1, hosts[from_host].ssl_ctx, false ); 324 conn = wrapclient(conn, connect_host, connect_port, cl, cl.default_mode or 1 );
325 host_session.conn = conn; 325 host_session.conn = conn;
326 326
327 -- Register this outgoing connection so that xmppserver_listener knows about it 327 -- Register this outgoing connection so that xmppserver_listener knows about it
328 -- otherwise it will assume it is a new incoming connection 328 -- otherwise it will assume it is a new incoming connection
329 cl.register_outgoing(conn, host_session); 329 cl.register_outgoing(conn, host_session);