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