jabberd2  2.5.0
Data Structures | Typedefs | Functions
authreg.c File Reference
#include "c2s.h"
#include <stringprep.h>
#include <dlfcn.h>

Go to the source code of this file.

Data Structures

struct  _authreg_error_st
 

Typedefs

typedef struct _authreg_error_stauthreg_error_t
 

Functions

authreg_t authreg_init (c2s_t c2s, const char *name)
 get a handle for the named module More...
 
void authreg_free (authreg_t ar)
 shutdown the authreg system More...
 
static void _authreg_auth_log (c2s_t c2s, sess_t sess, const char *method, const char *username, const char *resource, int success)
 auth logger More...
 
static void _authreg_auth_get (c2s_t c2s, sess_t sess, nad_t nad)
 auth get handler More...
 
static void _authreg_auth_set (c2s_t c2s, sess_t sess, nad_t nad)
 auth set handler More...
 
static void _authreg_register_get (c2s_t c2s, sess_t sess, nad_t nad)
 register get handler More...
 
static void _authreg_register_set (c2s_t c2s, sess_t sess, nad_t nad)
 register set handler More...
 
int authreg_process (c2s_t c2s, sess_t sess, nad_t nad)
 processor for iq:auth and iq:register packets return 0 if handled, 1 if not handled More...
 

Typedef Documentation

Function Documentation

authreg_t authreg_init ( c2s_t  c2s,
const char *  name 
)
void authreg_free ( authreg_t  ar)

shutdown the authreg system

shut down

Definition at line 130 of file authreg.c.

References authreg_st::free, and authreg_st::initialized.

Referenced by _c2s_ar_free(), and authreg_init().

static void _authreg_auth_log ( c2s_t  c2s,
sess_t  sess,
const char *  method,
const char *  username,
const char *  resource,
int  success 
)
inlinestatic

auth logger

Definition at line 137 of file authreg.c.

References _sx_flags(), sess_st::host, _sx_st::ip, c2s_st::log, log_write(), _sx_st::port, host_st::realm, sess_st::s, and _sx_st::tag.

Referenced by _authreg_auth_set().

static void _authreg_auth_get ( c2s_t  c2s,
sess_t  sess,
nad_t  nad 
)
static
static void _authreg_auth_set ( c2s_t  c2s,
sess_t  sess,
nad_t  nad 
)
static
static void _authreg_register_get ( c2s_t  c2s,
sess_t  sess,
nad_t  nad 
)
static
static void _authreg_register_set ( c2s_t  c2s,
sess_t  sess,
nad_t  nad 
)
static
int authreg_process ( c2s_t  c2s,
sess_t  sess,
nad_t  nad 
)