jabberd2
2.3.3
|
Go to the source code of this file.
Data Structures | |
struct | sx_sasl_creds_st |
Macros | |
#define | SX_SSL_WRAPPER (1<<0) /** SSL wrapper on legacy 5223 port */ |
sx stream flags More... | |
#define | SX_SSL_STARTTLS_OFFER (1<<1) /** don't offer starttls without this */ |
#define | SX_SSL_STARTTLS_REQUIRE (1<<2) /** starttls is required on the stream */ |
#define | SX_SASL_OFFER (1<<3) /** don't offer sasl without this */ |
#define | SX_COMPRESS_WRAPPER (1<<4) |
#define | SX_COMPRESS_OFFER (1<<5) |
#define | SX_SSL_MAGIC (0x01) |
magic numbers, so plugins can find each other More... | |
#define | SX_ERR_SSL (0x010) |
error codes More... | |
#define | SX_ERR_STARTTLS_FAILURE (0x011) |
#define | SX_ERR_COMPRESS (0x020) |
#define | SX_ERR_COMPRESS_FAILURE (0x021) |
#define | SX_CONN_EXTERNAL_ID_MAX_COUNT 8 |
#define | sx_sasl_cb_GET_REALM (0x00) |
#define | sx_sasl_cb_GET_PASS (0x01) |
#define | sx_sasl_cb_CHECK_PASS (0x02) |
#define | sx_sasl_cb_CHECK_AUTHZID (0x03) |
#define | sx_sasl_cb_GEN_AUTHZID (0x04) |
#define | sx_sasl_cb_CHECK_MECH (0x05) |
#define | sx_sasl_ret_OK (0) |
#define | sx_sasl_ret_FAIL (1) |
Typedefs | |
typedef int(* | sx_sasl_callback_t) (int cb, void *arg, void **res, sx_t s, void *cbarg) |
the callback function More... | |
typedef struct sx_sasl_creds_st * | sx_sasl_creds_t |
Functions | |
JABBERD2_API int | sx_sasl_init (sx_env_t env, sx_plugin_t p, va_list args) |
init function More... | |
JABBERD2_API int | sx_sasl_auth (sx_plugin_t p, sx_t s, const char *appname, const char *mech, const char *user, const char *pass) |
trigger for client auth More... | |
JABBERD2_API int | sx_ack_init (sx_env_t env, sx_plugin_t p, va_list args) |
init function More... | |
#define SX_SSL_WRAPPER (1<<0) /** SSL wrapper on legacy 5223 port */ |
sx stream flags
Definition at line 25 of file plugins.h.
Referenced by _c2s_client_mio_callback(), _out_result(), _out_verify(), _sx_ssl_client(), _sx_ssl_handshake(), _sx_ssl_process(), _sx_ssl_rio(), _sx_ssl_server(), _sx_ssl_starttls_notify_proceed(), and _sx_ssl_wio().
#define SX_SSL_STARTTLS_OFFER (1<<1) /** don't offer starttls without this */ |
Definition at line 26 of file plugins.h.
Referenced by _c2s_client_sx_callback(), _sx_ssl_features(), _sx_ssl_process(), in_mio_callback(), and router_mio_callback().
#define SX_SSL_STARTTLS_REQUIRE (1<<2) /** starttls is required on the stream */ |
Definition at line 27 of file plugins.h.
Referenced by _c2s_client_sx_callback(), _sx_compress_features(), _sx_sasl_features(), _sx_sasl_process(), and _sx_ssl_features().
#define SX_SASL_OFFER (1<<3) /** don't offer sasl without this */ |
Definition at line 29 of file plugins.h.
Referenced by _c2s_client_mio_callback(), _sx_sasl_features(), _sx_sasl_process(), and router_mio_callback().
#define SX_COMPRESS_WRAPPER (1<<4) |
Definition at line 31 of file plugins.h.
Referenced by _sx_compress_new(), _sx_compress_notify_compress(), _sx_compress_process(), _sx_compress_rio(), _sx_compress_wio(), and sx_compress_client_compress().
#define SX_COMPRESS_OFFER (1<<5) |
Definition at line 32 of file plugins.h.
Referenced by _c2s_client_mio_callback(), _sx_compress_features(), _sx_compress_process(), and in_mio_callback().
#define SX_SSL_MAGIC (0x01) |
magic numbers, so plugins can find each other
Definition at line 36 of file plugins.h.
Referenced by _sx_sasl_client_process(), and sx_ssl_init().
#define SX_ERR_SSL (0x010) |
error codes
Definition at line 41 of file plugins.h.
Referenced by _sx_ssl_handshake(), _sx_ssl_rio(), and _sx_ssl_wio().
#define SX_ERR_STARTTLS_FAILURE (0x011) |
Definition at line 42 of file plugins.h.
Referenced by _sx_ssl_process().
#define SX_ERR_COMPRESS (0x020) |
Definition at line 44 of file plugins.h.
Referenced by _sx_compress_rio(), and _sx_compress_wio().
#define SX_ERR_COMPRESS_FAILURE (0x021) |
Definition at line 45 of file plugins.h.
Referenced by _sx_compress_process().
#define SX_CONN_EXTERNAL_ID_MAX_COUNT 8 |
Definition at line 48 of file plugins.h.
Referenced by _sx_sasl_client_process(), _sx_sasl_gsasl_callback(), _sx_sasl_unload(), _sx_ssl_client(), _sx_ssl_free(), _sx_ssl_get_external_id(), _sx_ssl_server(), and sx_sasl_init().
#define sx_sasl_cb_GET_REALM (0x00) |
Definition at line 109 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), and _sx_sasl_client_process().
#define sx_sasl_cb_GET_PASS (0x01) |
Definition at line 110 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), and _sx_sasl_gsasl_callback().
#define sx_sasl_cb_CHECK_PASS (0x02) |
Definition at line 111 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), and _sx_sasl_gsasl_callback().
#define sx_sasl_cb_CHECK_AUTHZID (0x03) |
Definition at line 112 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), and _sx_sasl_open().
#define sx_sasl_cb_GEN_AUTHZID (0x04) |
Definition at line 113 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), and _sx_sasl_client_process().
#define sx_sasl_cb_CHECK_MECH (0x05) |
Definition at line 114 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), and _sx_sasl_features().
#define sx_sasl_ret_OK (0) |
Definition at line 117 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), _router_sx_sasl_callback(), _sx_sasl_features(), _sx_sasl_gsasl_callback(), and _sx_sasl_open().
#define sx_sasl_ret_FAIL (1) |
Definition at line 118 of file plugins.h.
Referenced by _c2s_sx_sasl_callback(), and _router_sx_sasl_callback().
typedef int(* sx_sasl_callback_t) (int cb, void *arg, void **res, sx_t s, void *cbarg) |
typedef struct sx_sasl_creds_st * sx_sasl_creds_t |
JABBERD2_API int sx_sasl_init | ( | sx_env_t | env, |
sx_plugin_t | p, | ||
va_list | args | ||
) |
init function
init function
Definition at line 855 of file sasl.c.
References _sx_debug, _sx_sasl_features(), _sx_sasl_free(), _sx_sasl_gsasl_callback(), _sx_sasl_process(), _sx_sasl_rio(), _sx_sasl_stream(), _sx_sasl_unload(), _sx_sasl_wio(), _sx_sasl_st::appname, _sx_sasl_st::cb, _sx_sasl_st::cbarg, _sx_sasl_st::ext_id, _sx_plugin_st::features, _sx_plugin_st::free, _sx_sasl_st::gsasl_ctx, _sx_plugin_st::private, _sx_plugin_st::process, _sx_plugin_st::rio, _sx_plugin_st::stream, SX_CONN_EXTERNAL_ID_MAX_COUNT, _sx_plugin_st::unload, _sx_plugin_st::wio, and ZONE.
Referenced by JABBER_MAIN().
JABBERD2_API int sx_sasl_auth | ( | sx_plugin_t | p, |
sx_t | s, | ||
const char * | appname, | ||
const char * | mech, | ||
const char * | user, | ||
const char * | pass | ||
) |
trigger for client auth
trigger for client auth
Definition at line 908 of file sasl.c.
References _sx_debug, _sx_sasl_st::gsasl_ctx, _sx_plugin_st::index, nad_add_namespace(), nad_append_attr(), nad_append_cdata(), nad_append_elem(), nad_new(), _sx_st::plugin_data, _sx_plugin_st::private, _sx_st::state, state_STREAM, sx_nad_write, _sx_st::type, type_CLIENT, uri_SASL, and ZONE.
Referenced by c2s_router_sx_callback(), s2s_router_sx_callback(), and sm_sx_callback().
JABBERD2_API int sx_ack_init | ( | sx_env_t | env, |
sx_plugin_t | p, | ||
va_list | args | ||
) |
init function
init function
Definition at line 103 of file ack.c.
References _sx_ack_features(), _sx_ack_header(), _sx_ack_process(), _sx_plugin_st::features, _sx_plugin_st::header, log_debug, _sx_plugin_st::process, and ZONE.
Referenced by JABBER_MAIN().