jabberd2  2.3.6
Data Fields
authreg_st Struct Reference

#include <c2s.h>

Data Fields

c2s_t c2s
 
int initialized
 
void * private
 module private data More...
 
int(* user_exists )(authreg_t ar, sess_t sess, const char *username, const char *realm)
 returns 1 if the user exists, 0 if not More...
 
int(* get_password )(authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])
 return this users cleartext password in the array (digest auth, password auth) More...
 
int(* check_password )(authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])
 check the given password against the stored password, 0 if equal, !0 if not equal (password auth) More...
 
int(* set_password )(authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])
 store this password (register) More...
 
int(* create_user )(authreg_t ar, sess_t sess, const char *username, const char *realm)
 make or break the user (register / register remove) More...
 
int(* delete_user )(authreg_t ar, sess_t sess, const char *username, const char *realm)
 
void(* sess_end )(authreg_t ar, sess_t sess)
 called prior to session being closed, to cleanup session specific private data More...
 
void(* free )(authreg_t ar)
 called prior to authreg shutdown More...
 
int(* user_authz_allowed )(authreg_t ar, sess_t sess, const char *username, const char *realm, const char *requested_user)
 returns 1 if the user is permitted to authorize as the requested_user, 0 if not. More...
 
int(* create_challenge )(authreg_t ar, sess_t sess, const char *username, const char *realm, char *challenge, int maxlen)
 Apple extensions for challenge/response authentication methods. More...
 
int(* check_response )(authreg_t ar, sess_t sess, const char *username, const char *realm, const char *challenge, const char *response)
 

Detailed Description

Definition at line 336 of file c2s.h.

Field Documentation

c2s_t authreg_st::c2s

Definition at line 338 of file c2s.h.

Referenced by _bind_features(), authreg_init(), and bind_init().

int authreg_st::initialized

Definition at line 339 of file c2s.h.

Referenced by authreg_free(), and authreg_init().

void* authreg_st::private

module private data

Definition at line 342 of file c2s.h.

int(* authreg_st::user_exists) (authreg_t ar, sess_t sess, const char *username, const char *realm)

returns 1 if the user exists, 0 if not

Definition at line 345 of file c2s.h.

Referenced by _authreg_auth_get(), _authreg_auth_set(), _authreg_register_set(), _c2s_sx_sasl_callback(), and authreg_init().

int(* authreg_st::get_password) (authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])

return this users cleartext password in the array (digest auth, password auth)

Definition at line 348 of file c2s.h.

Referenced by _authreg_auth_get(), _authreg_auth_set(), and _c2s_sx_sasl_callback().

int(* authreg_st::check_password) (authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])

check the given password against the stored password, 0 if equal, !0 if not equal (password auth)

Definition at line 351 of file c2s.h.

Referenced by _authreg_auth_get(), _authreg_auth_set(), and _c2s_sx_sasl_callback().

int(* authreg_st::set_password) (authreg_t ar, sess_t sess, const char *username, const char *realm, char password[257])

store this password (register)

Definition at line 354 of file c2s.h.

Referenced by _authreg_register_get(), and _authreg_register_set().

int(* authreg_st::create_user) (authreg_t ar, sess_t sess, const char *username, const char *realm)

make or break the user (register / register remove)

Definition at line 357 of file c2s.h.

Referenced by _authreg_register_get(), and _authreg_register_set().

int(* authreg_st::delete_user) (authreg_t ar, sess_t sess, const char *username, const char *realm)

Definition at line 358 of file c2s.h.

Referenced by _authreg_register_set(), and c2s_router_sx_callback().

void(* authreg_st::sess_end) (authreg_t ar, sess_t sess)

called prior to session being closed, to cleanup session specific private data

Definition at line 361 of file c2s.h.

Referenced by _c2s_client_mio_callback().

void(* authreg_st::free) (authreg_t ar)

called prior to authreg shutdown

Definition at line 364 of file c2s.h.

Referenced by _c2s_client_sx_callback(), and authreg_free().

int(* authreg_st::user_authz_allowed) (authreg_t ar, sess_t sess, const char *username, const char *realm, const char *requested_user)

returns 1 if the user is permitted to authorize as the requested_user, 0 if not.

requested_user is a JID

Definition at line 369 of file c2s.h.

Referenced by _c2s_sx_sasl_callback().

int(* authreg_st::create_challenge) (authreg_t ar, sess_t sess, const char *username, const char *realm, char *challenge, int maxlen)

Apple extensions for challenge/response authentication methods.

Definition at line 372 of file c2s.h.

Referenced by _authreg_auth_get().

int(* authreg_st::check_response) (authreg_t ar, sess_t sess, const char *username, const char *realm, const char *challenge, const char *response)

Definition at line 373 of file c2s.h.

Referenced by _authreg_auth_set().


The documentation for this struct was generated from the following file: