Logo Search packages:      
Sourcecode: sofia-sip version File versions

auth_module.h File Reference


Detailed Description

Authentication verification interface.

Defined when <sofia-sip/auth_module.h> has been included.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>.
Date:
Created: Mon Jul 23 19:21:24 2001 ppessi

Definition in file auth_module.h.

#include <sofia-sip/su_tag.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/msg_types.h>
#include <sofia-sip/url.h>
#include <sofia-sip/url_tag.h>

Go to the source code of this file.

Classes

struct  auth_challenger
struct  auth_status_t

Defines

#define AUTH_RESPONSE_DEINIT(as)   AUTH_STATUS_DEINIT(as)
#define AUTH_RESPONSE_INIT(as)   AUTH_STATUS_INIT
#define AUTH_STATUS_DEINIT(as)   su_home_deinit(as->as_home)
#define AUTH_STATUS_INIT   {{ SU_HOME_INIT(auth_status_t) }, 500, auth_internal_server_error, NULL }
#define AUTHTAG_ALGORITHM(x)   authtag_algorithm, tag_str_v((x))
#define AUTHTAG_ALGORITHM_REF(x)   authtag_algorithm_ref, tag_str_vr((&x))
#define AUTHTAG_ALLOW(x)   authtag_allow, tag_str_v((x))
#define AUTHTAG_ALLOW_REF(x)   authtag_allow_ref, tag_str_vr((&x))
#define AUTHTAG_ANONYMOUS(x)   authtag_anonymous, tag_bool_v((x))
#define AUTHTAG_ANONYMOUS_REF(x)   authtag_anonymous_ref, tag_bool_vr((&x))
#define AUTHTAG_ANY()   authtag_any, ((tag_value_t)0)
#define AUTHTAG_BLACKLIST(x)   authtag_blacklist, tag_uint_v((x))
#define AUTHTAG_BLACKLIST_REF(x)   authtag_blacklist_ref, tag_uint_vr((&x))
#define AUTHTAG_CACHE_ERRORS(x)   authtag_cache_errors, tag_uint_v((x))
#define AUTHTAG_CACHE_ERRORS_REF(x)   authtag_cache_errors_ref, tag_uint_vr((&x))
#define AUTHTAG_CACHE_USERS(x)   authtag_cache_users, tag_uint_v((x))
#define AUTHTAG_CACHE_USERS_REF(x)   authtag_cache_users_ref, tag_uint_vr((&x))
#define AUTHTAG_DB(x)   authtag_db, tag_str_v((x))
#define AUTHTAG_DB_REF(x)   authtag_db_ref, tag_str_vr((&x))
#define AUTHTAG_EXPIRES(x)   authtag_expires, tag_uint_v((x))
#define AUTHTAG_EXPIRES_REF(x)   authtag_expires_ref, tag_uint_vr((&x))
#define AUTHTAG_FAKE(x)   authtag_fake, tag_bool_v((x))
#define AUTHTAG_FAKE(x)   authtag_fake, tag_bool_v((x))
#define AUTHTAG_FAKE_REF(x)   authtag_fake_ref, tag_bool_vr((&x))
#define AUTHTAG_FAKE_REF(x)   authtag_fake_ref, tag_bool_vr((&x))
#define AUTHTAG_FORBIDDEN(x)   authtag_forbidden, tag_bool_v((x))
#define AUTHTAG_FORBIDDEN_REF(x)   authtag_forbidden_ref, tag_bool_vr((&x))
#define AUTHTAG_HSS(x)   authtag_hss, tag_ptr_v((x))
#define AUTHTAG_HSS_REF(x)   authtag_hss_ref, tag_ptr_vr((&x), (x))
#define AUTHTAG_MASTER_KEY(x)   authtag_master_key, tag_str_v((x))
#define AUTHTAG_MASTER_KEY_REF(x)   authtag_master_key_ref, tag_str_vr((&x))
#define AUTHTAG_METHOD(x)   authtag_method, tag_str_v((x))
#define AUTHTAG_METHOD_REF(x)   authtag_method_ref, tag_str_vr((&x))
#define AUTHTAG_MODULE(x)   authtag_module, authtag_module_v((x))
#define AUTHTAG_MODULE_REF(x)   authtag_module_ref, authtag_module_vr((&x))
#define authtag_module_v(v)   ((tag_value_t)(v))
#define authtag_module_vr(v)   ((tag_value_t)(v))
#define AUTHTAG_NEXT_EXPIRES(x)   authtag_next_expires, tag_uint_v((x))
#define AUTHTAG_NEXT_EXPIRES_REF(x)   authtag_next_expires_ref, tag_uint_vr((&x))
#define AUTHTAG_OPAQUE(x)   authtag_opaque, tag_str_v((x))
#define AUTHTAG_OPAQUE_REF(x)   authtag_opaque_ref, tag_str_vr((&x))
#define AUTHTAG_QOP(x)   authtag_qop, tag_str_v((x))
#define AUTHTAG_QOP_REF(x)   authtag_qop_ref, tag_str_vr((&x))
#define AUTHTAG_REALM(x)   authtag_realm, tag_str_v((x))
#define AUTHTAG_REALM_REF(x)   authtag_realm_ref, tag_str_vr((&x))
#define AUTHTAG_REMOTE(x)   authtag_remote, urltag_url_v((x))
#define AUTHTAG_REMOTE_REF(x)   authtag_remote_ref, urltag_url_vr((&x))

Typedefs

typedef void auth_callback_t (auth_magic_t *, auth_status_t *)
typedef struct auth_challenger auth_challenger_t
typedef void auth_magic_t
typedef
typedefSOFIA_BEGIN_DECLS
struct auth_mod_t 
auth_mod_t
typedef struct auth_plugin_t auth_plugin_t
typedef struct auth_scheme const auth_scheme_t
typedef struct auth_splugin_t auth_splugin_t
typedef struct auth_status_t auth_status_t
typedef struct auth_uplugin_t auth_uplugin_t

Enumerations

enum  auth_kind_t { auth_server, auth_proxy, auth_proxy_consume, auth_consume }

Functions

SOFIAPUBFUN void auth_mod_authorize (auth_mod_t *am, auth_status_t *as, auth_challenger_t const *ach)
SOFIAPUBFUN void auth_mod_cancel (auth_mod_t *am, auth_status_t *as)
SOFIAPUBFUN void auth_mod_challenge (auth_mod_t *am, auth_status_t *as, auth_challenger_t const *ach)
SOFIAPUBFUN void auth_mod_challenge_client (auth_mod_t *am, auth_status_t *as, auth_challenger_t const *ach)
SOFIAPUBFUN void auth_mod_check_client (auth_mod_t *am, auth_status_t *as, msg_auth_t *credentials, auth_challenger_t const *ach)
SOFIAPUBFUN auth_mod_tauth_mod_create (su_root_t *root, tag_type_t, tag_value_t,...)
SOFIAPUBFUN void auth_mod_destroy (auth_mod_t *)
SOFIAPUBFUN void auth_mod_method (auth_mod_t *am, auth_status_t *as, msg_auth_t *credentials, auth_challenger_t const *ach)
SOFIAPUBFUN char const * auth_mod_name (auth_mod_t *am)
SOFIAPUBFUN auth_mod_tauth_mod_ref (auth_mod_t *am)
SOFIAPUBFUN int auth_mod_register_plugin (auth_scheme_t *asch)
SOFIAPUBFUN void auth_mod_unref (auth_mod_t *am)
SOFIAPUBFUN void auth_mod_verify (auth_mod_t *am, auth_status_t *as, msg_auth_t *credentials, auth_challenger_t const *ach)
SOFIAPUBFUN auth_status_tauth_status_init (void *, isize_t size)
SOFIAPUBFUN auth_status_tauth_status_init_with (void *, isize_t size, int status, char const *phrase)
SOFIAPUBFUN auth_status_tauth_status_new (su_home_t *)
SOFIAPUBFUN auth_status_tauth_status_ref (auth_status_t *as)
SOFIAPUBFUN void auth_status_unref (auth_status_t *as)

Variables

SOFIAPUBVAR char const auth_internal_server_error []
SOFIAPUBVAR tag_typedef_t authtag_algorithm
SOFIAPUBVAR tag_typedef_t authtag_algorithm_ref
SOFIAPUBVAR tag_typedef_t authtag_allow
SOFIAPUBVAR tag_typedef_t authtag_allow_ref
SOFIAPUBVAR tag_typedef_t authtag_anonymous
SOFIAPUBVAR tag_typedef_t authtag_anonymous_ref
SOFIAPUBVAR tag_typedef_t authtag_any
SOFIAPUBVAR tag_typedef_t authtag_blacklist
SOFIAPUBVAR tag_typedef_t authtag_blacklist_ref
SOFIAPUBVAR tag_typedef_t authtag_cache_errors
SOFIAPUBVAR tag_typedef_t authtag_cache_errors_ref
SOFIAPUBVAR tag_typedef_t authtag_cache_users
SOFIAPUBVAR tag_typedef_t authtag_cache_users_ref
SOFIAPUBVAR tag_typedef_t authtag_db
SOFIAPUBVAR tag_typedef_t authtag_db_ref
SOFIAPUBVAR tag_typedef_t authtag_expires
SOFIAPUBVAR tag_typedef_t authtag_expires_ref
SOFIAPUBVAR tag_typedef_t authtag_fake
SOFIAPUBVAR tag_typedef_t authtag_fake_ref
SOFIAPUBVAR tag_typedef_t authtag_forbidden
SOFIAPUBVAR tag_typedef_t authtag_forbidden_ref
SOFIAPUBVAR tag_typedef_t authtag_hss
SOFIAPUBVAR tag_typedef_t authtag_hss_ref
SOFIAPUBVAR tag_typedef_t authtag_master_key
SOFIAPUBVAR tag_typedef_t authtag_master_key_ref
SOFIAPUBVAR tag_typedef_t authtag_method
SOFIAPUBVAR tag_typedef_t authtag_method_ref
SOFIAPUBVAR tag_typedef_t authtag_module
SOFIAPUBVAR tag_typedef_t authtag_module_ref
SOFIAPUBVAR tag_typedef_t authtag_next_expires
SOFIAPUBVAR tag_typedef_t authtag_next_expires_ref
SOFIAPUBVAR tag_typedef_t authtag_opaque
SOFIAPUBVAR tag_typedef_t authtag_opaque_ref
SOFIAPUBVAR tag_typedef_t authtag_qop
SOFIAPUBVAR tag_typedef_t authtag_qop_ref
SOFIAPUBVAR tag_typedef_t authtag_realm
SOFIAPUBVAR tag_typedef_t authtag_realm_ref
SOFIAPUBVAR tag_typedef_t authtag_remote
SOFIAPUBVAR tag_typedef_t authtag_remote_ref


Generated by  Doxygen 1.6.0   Back to index