jabberd2  2.3.3
Data Fields
authreg_st Struct Reference

#include <c2s.h>

Data Fields

c2s_t c2s
 
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 320 of file c2s.h.

Field Documentation

c2s_t authreg_st::c2s

Definition at line 322 of file c2s.h.

Referenced by authreg_init().

void* authreg_st::private

module private data

Definition at line 325 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 328 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 331 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 334 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 337 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 340 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 341 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 344 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 347 of file c2s.h.

Referenced by 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 352 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 355 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 356 of file c2s.h.

Referenced by _authreg_auth_set().


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