jabberd2
2.7.0
|
#include "s2s.h"
Go to the source code of this file.
Functions | |
static int | _in_sx_callback (sx_t s, sx_event_t e, void *data, void *arg) |
static void | _in_result (conn_t in, nad_t nad) |
auth requests More... | |
static void | _in_verify (conn_t in, nad_t nad) |
validate their key More... | |
static void | _in_packet (conn_t in, nad_t nad) |
they're trying to send us something More... | |
int | in_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg) |
|
static |
Definition at line 162 of file in.c.
References _in_packet(), _in_result(), _in_verify(), _sx_buf_st::data, jid_st::domain, s2s_st::enable_whitelist, event_CLOSED, event_ERROR, event_OPEN, event_PACKET, event_READ, event_STREAM, event_WANT_READ, event_WANT_WRITE, event_WRITE, mio_fd_st::fd, conn_st::fd, _sx_error_st::generic, _sx_st::id, s2s_st::in, INET6_ADDRSTRLEN, conn_st::ip, jid_free(), jid_new(), conn_st::key, conn_st::last_packet, _sx_buf_st::len, s2s_st::log, log_debug, log_write(), s2s_st::mio, mio_close, MIO_ERROR, mio_read, MIO_STRERROR, MIO_WOULDBLOCK, mio_write, NAD_AVAL, NAD_AVAL_L, NAD_ENAME, NAD_ENAME_L, NAD_ENS, nad_find_attr(), nad_free(), NAD_NURI, NAD_NURI_L, conn_st::online, s2s_st::packet_count, conn_st::packet_count, conn_st::port, s2s_st::require_tls, conn_st::s2s, s2s_domain_in_whitelist(), _sx_error_st::specific, _sx_st::ssf, sx_kill(), uri_CLIENT, uri_DIALBACK, uri_SERVER, xhash_put(), xhash_zap(), and ZONE.
Referenced by in_mio_callback().
auth requests
Definition at line 361 of file in.c.
References conn_INPROGRESS, conn_VALID, pkt_st::db, jid_st::domain, nad_st::elems, mio_fd_st::fd, conn_st::fd, pkt_st::from, nad_elem_st::icdata, _sx_st::id, conn_st::ip, nad_elem_st::itail, jid_free(), jid_new(), nad_elem_st::lcdata, s2s_st::log, log_debug, log_write(), nad_elem_st::ltail, pkt_st::nad, nad_add_namespace(), nad_append_attr(), nad_append_cdata(), nad_append_elem(), NAD_AVAL, NAD_AVAL_L, NAD_CDATA, NAD_CDATA_L, nad_find_attr(), nad_free(), nad_new(), nad_set_attr(), out_packet(), conn_st::port, pstrdup(), conn_st::s, conn_st::s2s, s2s_route_key(), stanza_tofrom(), conn_st::states, conn_st::states_time, sx_nad_write, pkt_st::to, uri_DIALBACK, xhash_get(), xhash_pool(), xhash_put(), and ZONE.
Referenced by _in_sx_callback().
validate their key
Definition at line 458 of file in.c.
References jid_st::domain, nad_st::elems, mio_fd_st::fd, conn_st::fd, nad_elem_st::icdata, conn_st::ip, nad_elem_st::itail, jid_free(), jid_new(), nad_elem_st::lcdata, s2s_st::local_secret, s2s_st::log, log_debug, log_write(), nad_elem_st::ltail, NAD_AVAL, NAD_AVAL_L, NAD_CDATA, NAD_CDATA_L, nad_find_attr(), nad_free(), nad_set_attr(), conn_st::port, conn_st::s, conn_st::s2s, s2s_db_key(), stanza_tofrom(), sx_nad_write, and ZONE.
Referenced by _in_sx_callback().
they're trying to send us something
Definition at line 533 of file in.c.
References conn_VALID, jid_st::domain, nad_st::ecur, nad_st::elems, mio_fd_st::fd, conn_st::fd, s2s_st::id, conn_st::ip, jid_free(), jid_new(), conn_st::key, s2s_st::log, log_debug, log_write(), nad_elem_st::my_ns, nad_add_namespace(), NAD_AVAL, NAD_AVAL_L, nad_find_attr(), nad_find_namespace(), nad_free(), nad_set_attr(), nad_wrap_elem(), nad_ns_st::next, nad_elem_st::ns, nad_st::nss, conn_st::port, s2s_st::router, conn_st::s2s, s2s_route_key(), nad_st::scope, conn_st::states, sx_nad_write, uri_CLIENT, uri_COMPONENT, uri_SERVER, xhash_get(), and ZONE.
Referenced by _in_sx_callback().
int in_mio_callback | ( | mio_t | m, |
mio_action_t | a, | ||
mio_fd_t | fd, | ||
void * | data, | ||
void * | arg | ||
) |
Definition at line 63 of file in.c.
References _in_sx_callback(), action_ACCEPT, action_CLOSE, action_READ, action_WRITE, s2s_st::compression, s2s_st::dead, s2s_st::dead_conn, mio_fd_st::fd, s2s_st::in, s2s_st::in_accept, in_mio_callback(), INET6_ADDRSTRLEN, conn_st::ip, j_inet_getport(), jqueue_push(), conn_st::key, s2s_st::log, log_debug, log_write(), mio_app, conn_st::online, conn_st::packet_count, conn_st::port, pstrdup(), conn_st::s, conn_st::s2s, S2S_DB_HEADER, s2s_st::server_fd, s2s_st::stanza_size_limit, sx_can_read(), sx_can_write(), SX_COMPRESS_OFFER, s2s_st::sx_env, sx_kill(), sx_new(), sx_server_init(), s2s_st::sx_ssl, SX_SSL_STARTTLS_OFFER, xhash_new(), xhash_pool(), xhash_put(), xhash_zap(), and ZONE.
Referenced by in_mio_callback(), and s2s_router_sx_callback().